Function at 0x40f390
Capabilities:
Copy file

Disassembly:
push ebp
sub esp, 0x4c
mov eax, 0x52ae52
call fcn.004c9d2c
sub esp, 0x434
push ebx
push esi
push edi
push dword [ebp + 0x58]
lea ecx, [ebp + 0x30]
xor ebx, ebx
call fcn.00403a19
mov eax, dword [ebp + 0x40]
mov dword [ebp - 4], ebx
cmp eax, 4
jle 0x40f482
lea ecx, [ebp + 0x4f]
add eax, 0xfffffffc
push ecx
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp]
call fcn.00403a4d
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp]
mov ecx, esp
push eax
call fcn.00403a19
lea eax, [ebp - 0x6c]
push eax
call fcn.004134ef
add esp, 0x1c
lea ecx, [ebp]
push eax
call fcn.00405adb
lea ecx, [ebp - 0x6c]
call fcn.00412054
push str..txt
lea ecx, [ebp]
call fcn.004113ba
test al, al
je 0x40f477
push 0xf
pop esi
cmp dword [ebp + 0x44], esi
lea eax, [ebp + 0x30]
push 0x542af4
cmova eax, dword [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
mov dword [ebp + 0x48], ebx
push eax
call fcn.004f6e57
add esp, 0xc
test eax, eax
jne 0x40f46f
cmp dword [ebp + 0x48], eax
je 0x40f46f
mov eax, dword [ebp + 0x5c]
mov ecx, eax
cmp dword [eax + 0x14], esi
jbe 0x40f450
mov ecx, dword [eax]
push dword [ebp + 0x48]
mov esi, dword [eax + 0x10]
push esi
push 1
push ecx
call fcn.004f8392
push dword [ebp + 0x48]
cmp eax, esi
sete bl
call fcn.004f6fff
add esp, 0x14
lea ecx, [ebp]
jmp 0x40f950
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.00412054
mov esi, dword [ebp + 0x60]
cmp dword [esi + 0x10], ebx
jne 0x40f4af
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004096c5
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00405adb
lea ecx, [ebp - 0x6c]
call fcn.00412054
cmp dword [esi + 0x10], ebx
je 0x40f955
push 0x54295a
lea ecx, [ebp - 0x84]
call fcn.00403ac3
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 2
cmp dword [eax + 0x10], ebx
je 0x40f4de
lea ecx, [ebp - 0x84]
push ecx
push esi
push eax
call fcn.00408e2a
add esp, 0xc
jmp 0x40f50a
lea eax, [ebp - 0x6c]
push 0x8b
push eax
call fcn.00410eaf
push 0x40
push eax
push dword [ebp + 0x64]
mov byte [ebp - 4], 3
call fcn.0040a1eb
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.0041207a
mov esi, 0x104
lea eax, [ebp - 0x440]
push esi
push ebx
push eax
call fcn.004cf050
add esp, 0xc
lea eax, [ebp - 0x440]
push esi
push eax
call fcn.004096bc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xf
pop esi
cmp dword [ebp + 0x44], esi
lea eax, [ebp + 0x30]
push ebx
cmova eax, dword [ebp + 0x30]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.PAYLOAD
lea ecx, [ebp + 0x18]
call fcn.00403ac3
push str.CONTENT
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00403ac3
cmp dword [ebp + 0x44], esi
lea eax, [ebp + 0x30]
lea ecx, [ebp]
mov byte [ebp - 4], 5
cmova eax, dword [ebp + 0x30]
push eax
call fcn.00403ac3
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp]
push eax
call fcn.00410b5c
add esp, 0x10
mov byte [ebp + 0x4f], al
lea ecx, [ebp]
call fcn.00412054
lea ecx, [ebp - 0x54]
call fcn.00412054
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
call fcn.00412054
cmp dword [ebp + 0x68], 0
je 0x40f947
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x54], bl
push 0x103
lea eax, [ebp - 0x187]
mov byte [ebp - 4], 7
push ebx
push eax
mov byte [ebp - 0x188], bl
call fcn.004cf050
mov edi, dword [ebp + 0x68]
lea eax, [ebp - 0x188]
push dword [edi]
push 0x542be0
push 0x104
push eax
call fcn.00413b1e
lea eax, [ebp - 0x188]
push eax
call fcn.004dcc60
add esp, 0x20
lea ecx, [ebp - 0x54]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00412257
push str.INFORMATION
lea ecx, [ebp - 0x3c]
call fcn.00403ac3
push str.SIZEX
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00403ac3
cmp dword [ebp + 0x44], esi
lea eax, [ebp + 0x30]
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 9
cmova eax, dword [ebp + 0x30]
push eax
call fcn.00403ac3
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00410b5c
add esp, 0x10
lea ecx, [ebp + 0x18]
call fcn.00412054
lea ecx, [ebp - 0x24]
call fcn.00412054
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00412054
push dword [edi + 4]
lea eax, [ebp - 0x188]
push 0x542be0
push 0x104
push eax
call fcn.00413b1e
lea eax, [ebp - 0x188]
push eax
call fcn.004dcc60
add esp, 0x14
push eax
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x54]
call fcn.00412257
push str.INFORMATION
lea ecx, [ebp + 0x18]
call fcn.00403ac3
push str.SIZEY
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.00403ac3
cmp dword [ebp + 0x44], esi
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
cmova eax, dword [ebp + 0x30]
push eax
call fcn.00403ac3
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00410b5c
add esp, 0x10
lea ecx, [ebp - 0x3c]
call fcn.00412054
lea ecx, [ebp - 0x24]
call fcn.00412054
lea ecx, [ebp + 0x18]
call fcn.00412054
xor eax, eax
lea edi, [ebp]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], esi
mov byte [ebp], bl
push 0x103
lea eax, [ebp - 0x33b]
mov byte [ebp - 4], 0xe
push ebx
push eax
mov byte [ebp - 0x33c], bl
call fcn.004cf050
mov ebx, dword [ebp + 0x68]
lea eax, [ebp - 0x33c]
push dword [ebx + 8]
push 0x542be0
push 0x104
push eax
call fcn.00413b1e
lea eax, [ebp - 0x33c]
push eax
call fcn.004dcc60
add esp, 0x20
lea ecx, [ebp]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.00412257
mov edi, str.INFORMATION
lea ecx, [ebp + 0x18]
push edi
call fcn.00403ac3
push str.FONTSIZE
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.00403ac3
mov byte [ebp - 4], 0x10
lea eax, [ebp + 0x30]
cmp dword [ebp + 0x44], esi
lea ecx, [ebp - 0x3c]
cmova eax, dword [ebp + 0x30]
push eax
call fcn.00403ac3
lea eax, [ebp]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00410b5c
add esp, 0x10
lea ecx, [ebp - 0x3c]
call fcn.00412054
lea ecx, [ebp - 0x24]
call fcn.00412054
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xe
call fcn.00412054
push edi
lea ecx, [ebp + 0x18]
call fcn.00403ac3
push str.TYPEFACE
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x12
call fcn.00403ac3
cmp dword [ebp + 0x44], esi
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x13
cmova eax, dword [ebp + 0x30]
push eax
call fcn.00403ac3
lea eax, [ebx + 0x10]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00410b5c
add esp, 0x10
lea ecx, [ebp - 0x3c]
call fcn.00412054
lea ecx, [ebp - 0x24]
call fcn.00412054
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xe
call fcn.00412054
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x40f937
push 1
lea ecx, [ebp - 0x238]
call fcn.00403d53
push esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x15
call fcn.00405bac
push edi
lea ecx, [ebp - 0x6c]
call fcn.00403ac3
push str.LANGID
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x16
call fcn.00403ac3
cmp dword [ebp + 0x44], 0xf
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x17
cmova eax, dword [ebp + 0x30]
push eax
call fcn.00403ac3
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x220]
call fcn.0041348c
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00410b5c
add esp, 0x10
lea ecx, [ebp - 0x3c]
call fcn.00412054
lea ecx, [ebp - 0x24]
call fcn.00412054
lea ecx, [ebp + 0x18]
call fcn.00412054
lea ecx, [ebp - 0x6c]
call fcn.00412054
lea ecx, [ebp - 0x238]
call fcn.00406064
lea ecx, [ebp]
call fcn.00412054
lea ecx, [ebp - 0x54]
call fcn.00412054
mov bl, byte [ebp + 0x4f]
lea ecx, [ebp - 0x84]
call fcn.00412054
lea ecx, [ebp + 0x30]
call fcn.00412054
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x50
leave
ret