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

Disassembly:
push 0x15c
mov eax, 0x4404e3
call fcn.0042bb26
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
lea edi, [ebx + 0x2c0]
mov dword [ebp - 0x7c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], edi
test eax, 0xffffffc0
jne 0x4125f2
lea eax, [ebp - 0x4c]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x7c], esp
push 0x38
push 0x4490a8
call fcn.004081ed
lea edi, [ebp - 0x110]
call fcn.00427366
and dword [ebp - 4], 0
call fcn.004274a1
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x4125c1
mov eax, dword [eax + 4]
jmp 0x4125c4
add eax, 4
push eax
push 1
call fcn.0040eded
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004035bd
lea esi, [ebp - 0x110]
call fcn.00404654
mov eax, 0x8000000a
call fcn.0042bba9
ret 8
xor esi, esi
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00403957
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 4], 2
call fcn.00418584
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov dword [ebp - 0x6c], esi
sar eax, 6
test eax, eax
jbe 0x41264a
lea ebx, [ebp - 0x6c]
lea eax, [ebp - 0x9c]
call fcn.0041862e
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
inc dword [ebp - 0x6c]
sar eax, 6
cmp dword [ebp - 0x6c], eax
jb 0x41262b
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov dword [ebp - 0x6c], esi
sar eax, 6
test eax, eax
jbe 0x4126ab
mov ebx, dword [ebp - 0x8c]
sub ebx, dword [ebp - 0x90]
sar ebx, 2
call fcn.004295cd
xor edx, edx
div ebx
lea eax, [ebp - 0x9c]
push edx
call fcn.004185bd
push dword [ebp - 0x6c]
mov ebx, eax
lea eax, [ebp - 0x9c]
call fcn.004185bd
cmp eax, ebx
je 0x41269a
mov edx, dword [ebx]
mov ecx, dword [eax]
mov dword [eax], edx
mov dword [ebx], ecx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
inc dword [ebp - 0x6c]
sar eax, 6
cmp dword [ebp - 0x6c], eax
jb 0x41265a
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x90]
mov dword [ebp - 0x6c], esi
sar eax, 2
test eax, eax
jbe 0x412965
push dword [ebp - 0x6c]
lea eax, [ebp - 0x9c]
call fcn.004185bd
mov ebx, dword [eax]
push ebx
mov eax, edi
mov dword [ebp - 0x84], ebx
call fcn.0041800c
cmp dword [eax + 0x3c], esi
je 0x41294a
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x80], esi
je 0x41270b
push ebx
mov eax, edi
call fcn.0041800c
add eax, 0x1c
cmp dword [eax + 0x14], esi
je 0x41294a
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x80], esi
push ebx
mov eax, edi
je 0x412736
mov dword [ebp - 0x78], 1
call fcn.0041800c
push 0xffffffffffffffff
add eax, 0x1c
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.004034e3
jmp 0x41278d
call fcn.0041800c
add eax, 0x1c
cmp dword [eax + 0x14], esi
je 0x412776
call fcn.004295cd
and eax, 0x80000001
jns 0x412754
dec eax
or eax, 0xfffffffe
inc eax
push ebx
mov eax, edi
jne 0x412779
call fcn.0041800c
push 0xffffffffffffffff
add eax, 0x1c
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.004034e3
mov dword [ebp - 0x78], 1
jmp 0x41278d
push ebx
mov eax, edi
call fcn.0041800c
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.004034e3
mov dword [ebp - 0x78], esi
push 0xf
pop edi
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x50], edi
call fcn.00403957
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], edi
call fcn.00403957
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 4], 5
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
mov ecx, 0x104
cdq
idiv ecx
mov edi, eax
cmp edi, esi
je 0x4129aa
call fcn.004295cd
xor edx, edx
div edi
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x70]
push edx
mov dword [edi], edx
call fcn.0042529e
push 0xffffffffffffffff
add eax, 0x1c
push esi
push eax
lea ecx, [ebp - 0x4c]
call fcn.004034e3
push dword [edi]
mov eax, dword [ebp - 0x70]
call fcn.0042529e
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x68]
call fcn.004034e3
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x41282d
lea edi, [eax - 1]
lea eax, [ebp - 0x30]
call fcn.004082f1
cmp byte [eax], 0x5c
je 0x41282d
xor ebx, ebx
push 0x5c
inc ebx
lea edi, [ebp - 0x30]
call fcn.004085fd
mov ebx, dword [ebp - 0x84]
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x68]
lea esi, [ebp - 0x30]
call fcn.00408559
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x412847
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x70]
add eax, 0x244
cmp dword [eax + 0x18], 0x10
jb 0x41285a
mov eax, dword [eax + 4]
jmp 0x41285d
add eax, 4
xor edi, edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, edi
jne 0x412a32
mov eax, dword [ebp - 0x74]
push ebx
call fcn.0041800c
add eax, 0x38
inc dword [eax]
mov eax, dword [ebp - 0x74]
push ebx
call fcn.0041800c
cmp dword [eax + 0x38], 3
jle 0x41292b
mov eax, dword [ebp - 0x74]
push ebx
call fcn.0041800c
cmp dword [eax + 0x18], 0x10
jb 0x4128a5
mov eax, dword [eax + 4]
jmp 0x4128a8
add eax, 4
push eax
lea eax, [ebp - 0xb8]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x78], esp
push 0x3f
push str._DRTSNT
call fcn.004081ed
lea edi, [ebp - 0x110]
call fcn.00427366
push eax
mov byte [ebp - 4], 8
call fcn.00427738
mov byte [ebp - 4], 9
cmp dword [eax + 0x18], 0x10
jb 0x4128e8
mov eax, dword [eax + 4]
jmp 0x4128eb
add eax, 4
mov ebx, dword [ebp - 0x70]
push eax
push 1
call fcn.0040eded
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.004035bd
lea esi, [ebp - 0x110]
mov byte [ebp - 4], 5
call fcn.00404654
push dword [ebp - 0x84]
mov eax, dword [ebp - 0x74]
call fcn.0041800c
and dword [eax + 0x3c], 0
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.004035bd
push edi
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.004035bd
mov edi, dword [ebp - 0x74]
xor esi, esi
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x90]
inc dword [ebp - 0x6c]
sar eax, 2
cmp dword [ebp - 0x6c], eax
jb 0x4126c5
lea eax, [ebp - 0xb8]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x7c], esp
push 0x2a
push str.926_Q_RYOXq1
call fcn.004081ed
lea edi, [ebp - 0x168]
call fcn.00427366
mov byte [ebp - 4], 0xa
call fcn.004273d9
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x18], 0x10
jb 0x412ab4
mov eax, dword [eax + 4]
jmp 0x412ab7
lea eax, [ebp - 0xb8]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x7c], esp
push 0x3a
push 0x4490e4
call fcn.004081ed
lea edi, [ebp - 0x110]
call fcn.00427366
mov byte [ebp - 4], 6
call fcn.004274a1
mov byte [ebp - 4], 7
cmp dword [eax + 0x18], 0x10
jb 0x4129e8
mov eax, dword [eax + 4]
jmp 0x4129eb
add eax, 4
mov ebx, dword [ebp - 0x70]
push eax
push 1
call fcn.0040eded
pop ecx
pop ecx
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0xb8]
call fcn.004035bd
lea esi, [ebp - 0x110]
call fcn.00404654
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.004035bd
push edi
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.004035bd
jmp 0x412965
mov esi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x78]
push 0xffffffffffffffff
mov dword [esi + 0x78], eax
push edi
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x3c]
call fcn.004034e3
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 0x58]
call fcn.004034e3
cmp dword [esi + 0x80], edi
jne 0x412a70
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0x20]
call fcn.004034e3
mov eax, dword [ebp - 0x74]
push ebx
mov dword [esi + 0x74], ebx
call fcn.0041800c
push edi
push 1
lea ecx, [ebp - 0x4c]
mov dword [eax + 0x38], edi
call fcn.004035bd
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.004035bd
xor ebx, ebx
lea esi, [ebp - 0x9c]
call fcn.00418479
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.004035bd
mov eax, ebx
jmp 0x4125ea
add eax, 4
mov ebx, dword [ebp - 0x70]
push eax
push 1
call fcn.0040eded
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.004035bd
lea esi, [ebp - 0x168]
call fcn.00404654
mov ebx, 0x80004005
xor edi, edi
jmp 0x412a97