Function at 0x462578
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x50
push 0
push 0
dec ecx
jne 0x462580
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 0x228]
mov edx, dword [0x4078f0]
call fcn.00404f48
mov edi, 0x466c80
xor eax, eax
push ebp
push 0x462c01
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov byte [0x466c88], 1
lea edx, [ebp - 0x22c]
mov eax, dword [edi]
mov eax, dword [eax + 0x2f0]
call fcn.00438ac8
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x2c]
call fcn.0040ae80
lea edx, [ebp - 0x234]
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458da8
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00408dac
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 8]
mov ecx, 0x462c1c
call fcn.00404844
mov eax, dword [ebp - 8]
call fcn.004049f0
push eax
lea eax, [ebp - 0x238]
mov ecx, 0x462c2c
mov edx, dword [ebp - 0x2c]
call fcn.00404844
mov eax, dword [ebp - 0x238]
call fcn.004049f0
pop edx
call fcn.004090c0
test eax, eax
jne 0x46264c
mov byte [0x466c88], 0
jmp 0x462bba
mov eax, dword [ebp - 0x2c]
call fcn.004611fc
test al, al
jne 0x462685
mov eax, dword [ebp - 0x2c]
call fcn.00461204
test al, al
jne 0x462712
push 0
mov ecx, 0x462c30
mov edx, 0x462c38
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458960
jmp 0x462bba
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 0x2c]
call fcn.00408dac
lea eax, [ebp - 0x23c]
mov edx, 0x462c50
call fcn.00404800
mov eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x228]
mov edx, 0x3f
call fcn.00408c9c
test eax, eax
jne 0x462712
mov eax, dword [ebp - 0x21c]
mov edx, 0x462c5c
call fcn.0040493c
je 0x462712
mov eax, dword [ebp - 0x21c]
mov edx, 0x462c68
call fcn.0040493c
je 0x462712
push 0x1144
mov ecx, 0x462c6c
mov edx, 0x462c70
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458960
cmp eax, 6
je 0x462712
mov eax, dword [ebp - 0x214]
push eax
call sub.kernel32.dll_FindClose_1
jmp 0x462bba
mov eax, dword [ebp - 0x2c]
call fcn.004047f8
mov edx, dword [ebp - 0x2c]
mov al, byte [edx + eax - 1]
cmp al, 0x5c
je 0x462732
lea eax, [ebp - 0x2c]
mov edx, 0x462c2c
call fcn.00404800
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x2c]
call fcn.004045d8
lea edx, [ebp - 0x244]
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458da8
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x240]
call fcn.00408dac
mov edx, dword [ebp - 0x240]
lea eax, [ebp - 8]
mov ecx, 0x462c1c
call fcn.00404844
lea edx, [ebp - 0x24c]
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458da8
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.00408dac
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 0xc]
mov ecx, 0x462c94
call fcn.00404844
lea eax, [ebp - 0x10]
mov ecx, 0x462ca4
mov edx, dword [ebp - 0x2c]
call fcn.00404844
lea edx, [ebp - 0x254]
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458da8
mov eax, dword [ebp - 0x254]
lea edx, [ebp - 0x250]
call fcn.00408dac
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 0x14]
mov ecx, 0x462cb4
call fcn.00404844
lea edx, [ebp - 0x25c]
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458da8
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x258]
call fcn.00408dac
mov edx, dword [ebp - 0x258]
lea eax, [ebp - 0x1c]
mov ecx, 0x462cc8
call fcn.00404844
lea eax, [ebp - 0x18]
mov ecx, 0x462cb4
mov edx, dword [ebp - 0x2c]
call fcn.00404844
lea eax, [ebp - 0x20]
mov ecx, 0x462cc8
mov edx, dword [ebp - 0x2c]
call fcn.00404844
lea edx, [ebp - 0x264]
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458da8
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x260]
call fcn.00408dac
mov edx, dword [ebp - 0x260]
lea eax, [ebp - 0x24]
mov ecx, 0x462cdc
call fcn.00404844
lea eax, [ebp - 0x28]
mov ecx, 0x462cdc
mov edx, dword [ebp - 0x2c]
call fcn.00404844
mov eax, dword [ebp - 4]
call fcn.004049f0
push eax
mov eax, dword [ebp - 8]
call fcn.004049f0
pop edx
call fcn.004090c0
test eax, eax
jne 0x4628b2
mov byte [0x466c88], 0
jmp 0x462bba
lea eax, [ebp - 4]
mov edx, 0x462c1c
call fcn.00404800
mov eax, dword [ebp - 4]
call fcn.004611fc
test al, al
jne 0x4628f6
mov eax, dword [ebp - 4]
call fcn.00408fa4
test al, al
jne 0x4628f6
push 0
mov ecx, 0x462c30
mov edx, 0x462cec
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458960
xor ebx, ebx
jmp 0x462bba
mov esi, 0x55
mov ebx, 0x464d98
lea eax, [ebp - 0x26c]
mov edx, ebx
call fcn.0040479c
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
mov edx, dword [ebp - 8]
call fcn.00404844
mov edx, dword [ebp - 0x268]
lea eax, [ebp - 0x7d]
call fcn.00409058
lea eax, [ebp - 0x274]
mov edx, ebx
call fcn.0040479c
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.00404844
mov edx, dword [ebp - 0x270]
lea eax, [ebp - 0xce]
call fcn.00409058
push 0
lea eax, [ebp - 0xce]
push eax
lea eax, [ebp - 0x7d]
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4629a5
push 0
mov ecx, 0x462c30
mov edx, 0x462d00
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458960
xor ebx, ebx
mov eax, dword [edi]
mov eax, dword [eax + 0x314]
xor edx, edx
call fcn.00462290
jmp 0x462bba
mov eax, dword [edi]
mov eax, dword [eax + 0x314]
mov edx, dword [eax + 0x170]
inc edx
call fcn.00462290
add ebx, 0xe
dec esi
jne 0x462900
mov eax, dword [ebp - 0x10]
call fcn.004611fc
test al, al
jne 0x462a09
mov eax, dword [ebp - 0x10]
call fcn.00408fa4
test al, al
jne 0x462a09
push 0
mov ecx, 0x462c30
mov edx, 0x462d14
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458960
xor ebx, ebx
mov eax, dword [edi]
mov eax, dword [eax + 0x314]
xor edx, edx
call fcn.00462290
jmp 0x462bba
mov esi, 7
mov ebx, 0x465240
lea eax, [ebp - 0x27c]
mov edx, ebx
call fcn.0040479c
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x278]
mov edx, dword [ebp - 0xc]
call fcn.00404844
mov edx, dword [ebp - 0x278]
lea eax, [ebp - 0x7d]
call fcn.00409058
lea eax, [ebp - 0x284]
mov edx, ebx
call fcn.0040479c
mov ecx, dword [ebp - 0x284]
lea eax, [ebp - 0x280]
mov edx, dword [ebp - 0x10]
call fcn.00404844
mov edx, dword [ebp - 0x280]
lea eax, [ebp - 0xce]
call fcn.00409058
push 0
lea eax, [ebp - 0xce]
push eax
lea eax, [ebp - 0x7d]
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x462ab8
push 0
mov ecx, 0x462c30
mov edx, 0x462d28
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458960
xor ebx, ebx
mov eax, dword [edi]
mov eax, dword [eax + 0x314]
xor edx, edx
call fcn.00462290
jmp 0x462bba
mov eax, dword [edi]
mov eax, dword [eax + 0x314]
mov edx, dword [eax + 0x170]
inc edx
call fcn.00462290
add ebx, 0xe
dec esi
jne 0x462a13
push 0
mov eax, dword [ebp - 0x18]
call fcn.004049f0
push eax
mov eax, dword [ebp - 0x14]
call fcn.004049f0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x462b21
push 0
mov ecx, 0x462c30
mov edx, 0x462d3c
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458960
xor ebx, ebx
mov eax, dword [edi]
mov eax, dword [eax + 0x314]
xor edx, edx
call fcn.00462290
jmp 0x462bba
push 0
mov eax, dword [ebp - 0x20]
call fcn.004049f0
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004049f0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x462b69
push 0
mov ecx, 0x462c30
mov edx, 0x462d54
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458960
xor ebx, ebx
mov eax, dword [edi]
mov eax, dword [eax + 0x314]
xor edx, edx
call fcn.00462290
jmp 0x462bba
push 0
mov eax, dword [ebp - 0x28]
call fcn.004049f0
push eax
mov eax, dword [ebp - 0x24]
call fcn.004049f0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x462bb1
push 0
mov ecx, 0x462c30
mov edx, 0x462d6c
mov eax, dword [0x46550c]
mov eax, dword [eax]
call fcn.00458960
xor ebx, ebx
mov eax, dword [edi]
mov eax, dword [eax + 0x314]
xor edx, edx
call fcn.00462290
jmp 0x462bba
mov bl, 1
mov byte [0x466c89], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462c08
lea eax, [ebp - 0x284]
mov edx, 0x16
call fcn.00404564
lea eax, [ebp - 0x22c]
call fcn.00404540
lea eax, [ebp - 0x228]
mov edx, dword [0x4078f0]
call fcn.00405018
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.00404564
ret