Function at 0x435030
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
mov eax, 0x53816c
call fcn.0050f344
mov word [ebp - 0x24], 8
lea eax, [ebp - 4]
call fcn.00401d1c
inc dword [ebp - 0x18]
mov word [ebp - 0x24], 0x14
mov word [ebp - 0x24], 0x20
lea eax, [ebp - 8]
call fcn.00401d1c
inc dword [ebp - 0x18]
mov word [ebp - 0x24], 0x14
cmp dword [0x54af04], 0
jne 0x435089
cmp dword [0x55bd90], 0
jne 0x4350b8
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0051ad80
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0051ad80
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x435377
mov eax, dword [ebp - 0x3c]
sub eax, dword [0x55c5a4]
add eax, 0x1d
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x40]
sub edx, dword [0x55c5a8]
add edx, 0x13
cmp dword [0x55bd80], 2
mov dword [ebp - 0x54], edx
je 0x43510e
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0051ad80
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0051ad80
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x435377
xor eax, eax
xor edx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x44], edx
xor ecx, ecx
mov dword [ebp - 0x48], ecx
xor eax, eax
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
shl ecx, 6
shl edx, 5
lea ecx, [ecx + ecx*2]
lea edx, [edx + edx*2]
add edx, ecx
add edx, 0x2a
cmp edx, dword [ebp - 0x50]
jg 0x4351a7
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
shl edx, 6
shl eax, 5
lea edx, [edx + edx*2]
lea eax, [eax + eax*2]
add eax, edx
add eax, 0x5a
cmp eax, dword [ebp - 0x50]
jle 0x4351a7
mov ecx, dword [ebp - 0x4c]
add ecx, ecx
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
add ecx, 0x78
cmp ecx, dword [ebp - 0x54]
jg 0x4351a7
mov eax, dword [ebp - 0x4c]
add eax, eax
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
add eax, 0x8c
cmp eax, dword [ebp - 0x54]
jle 0x4351a7
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
shl edx, 2
add ecx, ecx
mov eax, 0x64
lea edx, [edx + edx*4]
add edx, dword [ebp - 0x48]
add edx, ecx
inc edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], eax
inc dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], 0xa
jl 0x435122
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 2
jl 0x43511d
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], 4
jl 0x435118
cmp dword [ebp - 0x58], 0
je 0x4352c8
mov edx, dword [0x55bd88]
lea ecx, [ebp - 4]
push edx
push 0x537c50
push ecx
call fcn.0051af5c
add esp, 0xc
mov eax, dword [ebp - 0x58]
push eax
push 0x537c62
lea edx, [ebp - 8]
push edx
call fcn.0051af5c
add esp, 0xc
cmp dword [0x55c598], 0
jne 0x43529b
mov eax, dword [ebp - 8]
call fcn.00459a5c
test al, al
jne 0x43522e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00459c80
jmp 0x4352c0
mov word [ebp - 0x24], 0x2c
mov edx, 0x537c74
lea eax, [ebp - 0xc]
call fcn.0051ac20
inc dword [ebp - 0x18]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
call fcn.00459c80
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0051ad80
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00459c80
mov word [ebp - 0x24], 0x38
mov edx, 0x537c87
lea eax, [ebp - 0x10]
call fcn.0051ac20
inc dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.00459c80
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0051ad80
jmp 0x4352c0
mov eax, dword [ebp - 8]
call fcn.00459a5c
test al, al
jne 0x4352c0
push 1
lea eax, [ebp - 8]
call fcn.00403d8c
push eax
lea eax, [ebp - 4]
call fcn.00403d8c
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 0x38]
call fcn.00433644
cmp dword [0x55bd88], 0
je 0x435323
cmp dword [0x55bd88], 0x63
jge 0x435323
cmp dword [ebp - 0x50], 0x2ad
jl 0x435323
cmp dword [ebp - 0x54], 0x17
jl 0x435323
cmp dword [ebp - 0x50], 0x31c
jge 0x435323
cmp dword [ebp - 0x54], 0x84
jge 0x435323
mov edx, dword [0x55bd88]
lea ecx, [ebp - 4]
push edx
push 0x537c9a
push ecx
call fcn.0051af5c
add esp, 0xc
mov eax, dword [ebp - 4]
call fcn.0051ab94
mov eax, dword [ebp - 0x38]
call fcn.00433644
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dword [0x55bd90], edx
mov eax, dword [ecx + 0x404]
push eax
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx + 0x2f8]
mov eax, dword [ecx + 0x160]
xor ecx, ecx
xor edx, edx
call fcn.004c8788
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0051ad80
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0051ad80
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret