Function at 0x100541e0
Capabilities:
Copy file
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025d86d
push eax
mov eax, dword [0x1030aa70]
mov dword fs:[0], esp
sub esp, 0xa10
push esi
xor esi, esi
cmp eax, esi
je 0x10054228
mov eax, dword [esp + 0xa2c]
push eax
push str.CMailControlHelper::LogMail__________08x_
push str.maillog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
push ebx
push ebp
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x202]
mov word [esp + 0x200], si
mov word [esp + 0x408], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x40a]
mov word [esp + 0x610], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x612]
mov ebp, dword [esp + 0xa34]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x81a]
mov word [esp + 0x818], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp]
mov dword [esp + 0x18], esi
cmp eax, esi
je 0x10054ba9
lea ecx, [esp + 0x34]
call fcn.10054c50
mov edi, dword [esp + 0xa30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
mov dword [esp + 0xa2c], esi
call fcn.1005acc0
lea edx, [esp + 0x3c]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.100a8e70
add esp, 8
mov eax, dword [esp + 0x84]
mov byte [esp + 0xa28], 1
cmp eax, esi
jne 0x100542fc
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], esi
and al, 0xfe
mov dword [ebp + 0x10], eax
mov edx, dword [esp + 0x10]
push 2
lea ecx, [esp + 0x204]
push 0x104
push ecx
push edx
call fcn.10053c60
add esp, 0x10
test eax, eax
je 0x10054b63
mov ecx, dword [esp + 0x10]
push 5
lea eax, [esp + 0x40c]
push 0x104
push eax
push ecx
call fcn.10053c60
add esp, 0x10
test eax, eax
je 0x10054b63
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x614]
push 0x104
push edx
push eax
call fcn.10053c60
add esp, 0x10
test eax, eax
je 0x10054b63
mov edx, dword [esp + 0x10]
push 3
lea ecx, [esp + 0x81c]
push 0x104
push ecx
push edx
call fcn.10053c60
add esp, 0x10
test eax, eax
je 0x10054b63
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.10055970
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x200]
push esi
push ecx
push eax
call edi
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call fcn.1008ec90
mov eax, dword [0x1030aa70]
test bl, bl
jne 0x10054a8a
cmp eax, esi
je 0x100543f8
mov edx, dword [esp + 0x84]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
push eax
push ecx
push edx
push str.CMailControlHelper::LogMail_1___lu____lu____08x____lu_
push str.maillog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x20
push 0x102f440c
lea ecx, [esp + 0x18]
call fcn.1008e4f0
mov eax, dword [ebp + 0xc]
mov byte [esp + 0xa28], 2
cmp eax, esi
je 0x10054463
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
push str.Ignore_text_content___lu_bytes_.
push ecx
call fcn.10091c10
mov eax, dword [0x1030aa70]
add esp, 0xc
cmp eax, esi
je 0x1005444e
push str.CMailControlHelper::LogMail__not_log_Body__
push str.Maillog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x200]
push edx
push eax
call fcn.100540c0
add esp, 8
lea ecx, [esp + 0x154]
call fcn.100be170
lea ecx, [esp + 0x200]
mov byte [esp + 0xa28], 3
push ecx
lea ecx, [esp + 0x158]
call fcn.100be620
test eax, eax
je 0x10054a9c
lea edx, [esp + 0x408]
lea ecx, [esp + 0x154]
push edx
call fcn.100bff10
lea ecx, [esp + 0x154]
mov byte [esp + 0xa28], 2
call fcn.100be2e0
cmp dword [ebp + 8], esi
je 0x10054558
cmp dword [0x1030aa70], esi
je 0x100544e5
push str.CMailControlHelper::LogMail__not_log_attach__
push str.Maillog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
lea eax, [esp + 0x408]
lea ecx, [esp + 0x20]
push eax
call fcn.1008e4f0
lea ecx, [esp + 0x200]
mov byte [esp + 0xa28], 4
push ecx
lea ecx, [esp + 0x28]
call fcn.1008e4f0
mov eax, dword [esp + 0x20]
mov byte [esp + 0xa28], 5
cmp dword [eax - 8], esi
je 0x10054ae7
mov ecx, dword [esp + 0x24]
cmp dword [ecx - 8], esi
je 0x10054ae7
push esi
push ecx
push eax
call edi
lea ecx, [esp + 0x24]
mov byte [esp + 0xa28], 4
call fcn.1008ec90
lea ecx, [esp + 0x20]
mov byte [esp + 0xa28], 2
call fcn.1008ec90
cmp dword [0x1030aa70], esi
je 0x1005459f
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
push edx
push str.CMailControlHelper::LogMail_2___08x___s____s___s___s___s____08x_
push str.Maillog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x2c
mov edx, dword [esp + 0x44]
mov ecx, 0x2f
xor eax, eax
lea edi, [esp + 0x98]
mov dword [esp + 0x94], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x120], eax
mov dword [esp + 0x118], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x11c], edx
mov edx, dword [esp + 0xa38]
lea eax, [esp + 0xec]
push eax
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], edx
call fcn.10064cb0
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0x18]
push 0x27
lea eax, [esp + 0xa4]
push edx
push eax
mov dword [esp + 0x10c], ecx
call fcn.10077828
mov ecx, dword [ebp + 0x68]
add esp, 0x10
lea edx, [esp + 0x104]
mov dword [esp + 0x94], ecx
push esi
push esi
push esi
push edx
mov ecx, 0x102f9570
call fcn.100460f0
mov eax, dword [esp + 0x64]
mov eax, dword [eax - 8]
cmp eax, esi
je 0x10054659
mov dword [esp + 0x12c], eax
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx - 8]
cmp eax, esi
je 0x1005466b
mov dword [esp + 0x130], eax
mov edx, dword [esp + 0x6c]
mov eax, dword [edx - 8]
cmp eax, esi
je 0x1005467d
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax - 8]
cmp eax, esi
je 0x1005468f
mov dword [esp + 0x138], eax
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx - 8]
cmp eax, esi
je 0x100546a1
mov dword [esp + 0x13c], eax
lea edx, [esp + 0x2c]
push esi
push edx
lea eax, [esp + 0x410]
push esi
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
call fcn.100632d0
lea ecx, [esp + 0x38]
push esi
push ecx
lea edx, [esp + 0x218]
push esi
push edx
call fcn.100632d0
mov eax, dword [ebp + 0xc]
add esp, 0x20
cmp eax, esi
je 0x100546e4
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 8]
jmp 0x100546eb
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx - 8]
mov edx, dword [esp + 0x2c]
mov ecx, dword [0x1026c87c]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x144], edx
mov dword [esp + 0x148], eax
xor edi, edi
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x84]
xor ebp, ebp
cmp eax, esi
mov byte [esp + 0xa28], 6
jle 0x10054775
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esi + edx + 8]
mov ecx, dword [eax - 8]
add edi, ebx
test ecx, ecx
jle 0x1005474f
push 0x102b8d18
lea ecx, [esp + 0x20]
call fcn.1008f8e0
mov ecx, dword [esp + 0x80]
lea edx, [esi + ecx + 0x14]
lea ecx, [esp + 0x1c]
push edx
call fcn.1008f940
mov eax, dword [esp + 0x84]
inc ebp
add esi, 0x28
cmp ebp, eax
jl 0x10054729
xor esi, esi
cmp eax, esi
mov dword [esp + 0x14c], edi
mov dword [esp + 0x150], eax
jne 0x1005479d
cmp dword [esp + 0xa38], 2
jne 0x1005479d
mov eax, 1
mov dword [esp + 0x150], eax
mov ecx, dword [esp + 0x13c]
lea eax, [eax + eax*4]
mov ebp, dword [esp + 0x134]
mov ebx, dword [esp + 0x130]
lea eax, [eax + eax*8]
mov edi, dword [esp + 0x12c]
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x138]
add edx, eax
add edx, ebp
add edx, ebx
add edx, edi
lea eax, [edx + edx + 0xca]
push eax
call fcn.1024ac71
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x10054b2c
mov eax, dword [esp + 0x150]
mov edx, dword [esp + 0x13c]
mov ebx, dword [esp + 0x130]
mov edi, dword [esp + 0x12c]
lea eax, [eax + eax*4]
lea esi, [esp + 0x94]
lea ecx, [eax + eax*8]
lea eax, [edx + ecx*2]
mov edx, dword [esp + 0x138]
mov ecx, dword [esp + 0x134]
add eax, edx
add eax, ecx
add eax, ebx
add eax, edi
mov edi, ebp
lea ecx, [eax + eax + 0xca]
xor eax, eax
mov dword [esp + 0x30], ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 0x30
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x10054873
push eax
mov eax, dword [esp + 0x68]
lea ecx, [ebp + 0xc0]
push eax
push ecx
call fcn.10077828
add esp, 0xc
mov eax, dword [esp + 0x130]
test eax, eax
je 0x1005489a
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [ebp + 0x98]
push edx
lea ecx, [ebp + eax*2 + 0xc2]
push ecx
call fcn.10077828
add esp, 0xc
mov eax, dword [esp + 0x134]
test eax, eax
je 0x100548c9
mov esi, dword [ebp + 0x98]
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [ebp + 0x9c]
add eax, esi
push edx
lea ecx, [ebp + eax*2 + 0xc4]
push ecx
call fcn.10077828
add esp, 0xc
mov eax, dword [esp + 0x138]
test eax, eax
je 0x10054900
mov edi, dword [ebp + 0x9c]
mov esi, dword [ebp + 0x98]
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [ebp + 0xa0]
push edx
add eax, edi
add eax, esi
lea ecx, [ebp + eax*2 + 0xc6]
push ecx
call fcn.10077828
add esp, 0xc
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x1005493f
mov ebx, dword [ebp + 0xa0]
mov edi, dword [ebp + 0x9c]
mov esi, dword [ebp + 0x98]
push eax
mov eax, dword [ebp + 0xa4]
mov edx, dword [esp + 0x78]
add eax, ebx
push edx
add eax, edi
add eax, esi
lea ecx, [ebp + eax*2 + 0xc8]
push ecx
call fcn.10077828
add esp, 0xc
mov edx, dword [ebp + 0xa8]
mov eax, dword [ebp + 0xa4]
mov ebx, dword [ebp + 0xa0]
mov edi, dword [ebp + 0x9c]
mov esi, dword [ebp + 0x98]
add edx, eax
mov ecx, dword [esp + 0x84]
add edx, ebx
add edx, edi
xor ebx, ebx
add edx, esi
test ecx, ecx
lea eax, [ebp + edx*2 + 0xca]
mov dword [esp + 0x18], eax
jle 0x100549eb
lea edi, [eax + 0x14]
xor esi, esi
jmp 0x10054988
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xa34]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x100549a3
push 0
push 0
push eax
call fcn.10064d00
add esp, 0xc
mov edx, dword [esp + 0x80]
push 0x4f
mov eax, dword [esi + edx + 8]
mov dword [edi - 4], eax
mov ecx, dword [esp + 0x84]
mov eax, dword [esi + ecx + 0x14]
push eax
push edi
call fcn.10077828
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x90]
add esp, 0xc
inc ebx
add esi, 0x28
add edx, 0xb4
add edi, 0xb4
cmp ebx, eax
mov dword [esp + 0x18], edx
jl 0x10054984
mov edx, dword [esp + 0xa34]
mov eax, dword [edx + 0xc]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x10054a01
mov eax, dword [esp + 0x78]
mov ecx, dword [eax - 8]
lea edx, [esp + 0x610]
add ecx, ecx
push ecx
push eax
push edx
call fcn.10064dc0
mov eax, dword [esp + 0x3c]
add esp, 0xc
lea ecx, [esp + 0x818]
push eax
push ebp
push ecx
call fcn.10064dc0
push ebp
mov dword [esp + 0x28], 1
call fcn.1024ac9a
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa28], 2
call fcn.1008ec90
lea ecx, [esp + 0x14]
mov byte [esp + 0xa28], 1
call fcn.1008ec90
lea ecx, [esp + 0x10]
mov byte [esp + 0xa28], 0
call fcn.1008ec90
lea ecx, [esp + 0x34]
mov dword [esp + 0xa28], 0xffffffff
call fcn.10054d10
xor esi, esi
jmp 0x10054be8
cmp eax, esi
je 0x10054b84
push str.CMailControlHelper::LogMail_failed_2
jmp 0x10054b70
cmp dword [0x1030aa70], esi
je 0x10054abd
push str.CMailControlHelper::LogMail_failed_3
push str.Maillog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
lea ecx, [esp + 0x154]
mov byte [esp + 0xa28], 2
call fcn.100be2e0
lea ecx, [esp + 0x14]
mov byte [esp + 0xa28], 1
call fcn.1008ec90
jmp 0x10054b84
cmp dword [0x1030aa70], esi
je 0x10054b08
push str.CMailControlHelper::LogMail_failed_60__
push str.Maillog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0xa28], 4
call fcn.1008ec90
lea ecx, [esp + 0x20]
mov byte [esp + 0xa28], 2
call fcn.1008ec90
jmp 0x10054ad1
cmp dword [0x1030aa70], esi
je 0x10054b4d
push str.CMailControlHelper::LogMail_new_BYTE_10__
push str.Maillog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa28], 2
call fcn.1008ec90
jmp 0x10054ad1
cmp dword [0x1030aa70], esi
je 0x10054b84
push str.CMailControlHelper::LogMail_failed_1
push str.maillog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0xa28], 0
call fcn.1008ec90
lea ecx, [esp + 0x34]
mov dword [esp + 0xa28], 0xffffffff
call fcn.10054d10
lea edx, [esp + 0x200]
push 1
push edx
call fcn.10065eb0
lea eax, [esp + 0x410]
push 1
push eax
call fcn.10065eb0
lea ecx, [esp + 0x620]
push 1
push ecx
call fcn.10065eb0
lea edx, [esp + 0x830]
push 1
push edx
call fcn.10065eb0
add esp, 0x20
mov eax, dword [0x1030aa70]
pop edi
pop ebp
cmp eax, esi
pop ebx
je 0x10054c2a
mov esi, dword [esp + 0xc]
push esi
push str.CMailControlHelper::LogMail_____d_
push str.Maillog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
mov eax, esi
pop esi
mov ecx, dword [esp + 0xa10]
mov dword fs:[0], ecx
add esp, 0xa1c
ret
mov ecx, dword [esp + 0xa14]
mov eax, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0xa1c
ret