Function at 0x414a20
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507982
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
sub esp, 0x18
mov esi, esp
mov word [ebp - 0xf], 0x5c
xor eax, eax
mov byte [ebp - 0xd], 0
mov edi, ecx
mov dword [ebp - 0x20], esp
lea ecx, [ebp - 0xf]
mov ebx, edx
mov dword [esi], eax
lea edx, [ecx + 1]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414a77
sub ecx, edx
lea eax, [ebp - 0xf]
push ecx
push eax
mov ecx, esi
call fcn.00402ea0
mov dword [ebp - 4], 0
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x1c], esp
xor eax, eax
mov ecx, edi
mov dword [edx], eax
mov dword [edx + 4], eax
lea esi, [ecx + 1]
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414ab3
sub ecx, esi
push ecx
push edi
mov ecx, edx
call fcn.00402ea0
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040b920
add esp, 0x30
mov dword [ebp - 4], 2
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x414c35
lea eax, [eax + eax*2]
mov edx, 0xc
lea eax, [eax - 3]
lea eax, [esi + eax*8]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x20], eax
call fcn.0040bbe0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov word [ebp - 0x13], 0x5c
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x13]
mov edx, dword [0x541ddc]
lea esi, [ecx + 1]
jmp 0x414b40
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414b40
mov eax, closesocket
sub ecx, esi
sub eax, edx
cmp eax, ecx
jb 0x414d21
cmp dword [0x541de0], 0xf
mov eax, 0x541dcc
jbe 0x414b6b
mov eax, dword [0x541dcc]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x90]
call fcn.00470ea0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 5
lea eax, [ebp - 0x90]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x1c]
call fcn.00470cf0
push dword [ebp - 0x20]
lea edx, [ebp - 0x78]
mov dword [ebp - 0x18], 3
lea ecx, [ebp - 0x38]
call fcn.0046d2f0
add esp, 4
mov byte [ebp - 4], 6
mov esi, 3
mov dword [ebp - 0x18], esi
and esi, 0xfffffffd
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x78]
call fcn.00402c80
and esi, 0xfffffffe
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x90]
call fcn.00402c80
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
call fcn.00402c80
cmp dword [ebp - 0x24], 0xf
lea eax, [ebp - 0x38]
jbe 0x414c04
mov eax, dword [ebp - 0x38]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x414c68
cmp dword [ebp - 0x24], 0xf
lea edx, [ebp - 0x38]
jbe 0x414c1e
mov edx, dword [ebp - 0x38]
mov ecx, edi
call fcn.00414830
test al, al
jne 0x414c68
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00402c80
push ecx
push 6
mov edx, ebx
mov ecx, edi
call fcn.004dd610
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0046ac50
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5441e0
mov dword [ebp - 0x1c], 0x5441e0
call fcn.004ded99
add esp, 4
test eax, eax
jne 0x414d26
cmp dword [0x54420c], 0x7fffffff
je 0x414d2d
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 0xf
jbe 0x414ca4
mov ecx, dword [ebp - 0x38]
push ecx
push 1
mov edx, ebx
call fcn.004dd610
add esp, 8
lea ecx, [ebp - 0x60]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call fcn.00468b20
mov byte [ebp - 4], 0xb
mov eax, dword [ebx]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x60]
mov eax, dword [0x544308]
push ecx
cmp eax, dword [0x54430c]
je 0x414ced
mov ecx, eax
call fcn.0047e5e0
add dword [0x544308], 0x1c
jmp 0x414cf3
push eax
call fcn.00475c70
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x60]
call fcn.00402c80
mov byte [ebp - 4], 9
push 0x5441e0
call fcn.004dedaa
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00402c80
jmp 0x414c46
call fcn.004025a0
push 5
call fcn.004de734
push 6
mov dword [0x54420c], 0x7ffffffe
call fcn.004de734
int3