Function at 0x49fa50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x44
push 0
push 0
dec ecx
jne 0x49fa58
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49ffe5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov byte [eax + 5], 1
lea edx, [ebp - 0x1f0]
xor eax, eax
call fcn.00402c70
mov eax, dword [ebp - 0x1f0]
lea edx, [ebp - 0x1ec]
call fcn.00409c24
mov edx, dword [ebp - 0x1ec]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00473724
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1f4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
call fcn.00409d2c
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x14]
mov edx, 0x4a0000
call fcn.00409b5c
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
push 0x4a0010
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404e14
mov eax, dword [ebp - 0x14]
call fcn.0040991c
test al, al
je 0x49fb78
mov ecx, dword [0x4c4a8c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x49ec2c]
call fcn.00467dc8
mov edx, dword [0x4c48ac]
mov dword [edx], eax
xor eax, eax
push ebp
push 0x49fb71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4c48ac]
mov eax, dword [eax]
add eax, 0x328
mov edx, dword [ebp - 0x14]
call fcn.00404af0
mov eax, dword [0x4c48ac]
mov eax, dword [eax]
mov byte [eax + 0x32c], 1
mov eax, dword [0x4c48ac]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xe8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fb78
mov eax, dword [0x4c48ac]
mov eax, dword [eax]
call fcn.00403d30
ret
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
call fcn.00472dec
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x49fc65
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x49fc65
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738b8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 0
je 0x49fbc2
mov eax, ebx
cdq
idiv dword [ebp - 0x18]
test edx, edx
jne 0x49fbe6
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x49fbe6
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x1c]
call dword [edi + 0x18]
lea edx, [ebp - 0x1f8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
call fcn.00409c24
mov eax, dword [ebp - 0x1f8]
call fcn.0040992c
test al, al
jne 0x49fc22
lea edx, [ebp - 0x1fc]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
call fcn.00409c24
mov eax, dword [ebp - 0x1fc]
call fcn.0049f95c
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
call fcn.00404f4c
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00404f4c
push eax
call sub.KERNEL32.DLL_CopyFileA
cmp dword [ebp - 0x18], 0
je 0x49fc51
mov eax, ebx
cdq
idiv dword [ebp - 0x18]
test edx, edx
jne 0x49fc5d
mov eax, dword [0x4c4a8c]
mov eax, dword [eax]
call fcn.0046f360
inc ebx
dec esi
jne 0x49fb98
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0xc]
dec esi
test esi, esi
jl 0x49fcf5
inc esi
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738cc
mov eax, dword [eax + 4]
lea edx, [ebp - 0x200]
call fcn.00409c24
mov eax, dword [ebp - 0x200]
call fcn.0040992c
test al, al
jne 0x49fcc1
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738cc
mov eax, dword [eax + 4]
lea edx, [ebp - 0x204]
call fcn.00409c24
mov eax, dword [ebp - 0x204]
call fcn.0049f95c
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738cc
mov eax, dword [eax + 0xc]
push eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738cc
mov eax, dword [eax + 8]
push eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738cc
mov eax, dword [eax + 4]
pop edx
pop ecx
call fcn.00472b70
inc ebx
dec esi
jne 0x49fc77
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x208]
mov ecx, 0x4a0024
call fcn.00404da0
mov eax, dword [ebp - 0x208]
call fcn.0049f95c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1e8]
call fcn.00403020
lea eax, [ebp - 0x1e8]
call fcn.00402dbc
call fcn.004028d4
mov edx, 0x4a0038
lea eax, [ebp - 0x1e8]
call fcn.00405168
call fcn.0040376c
call fcn.004028d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x20c]
mov edx, 0x4a0048
call fcn.00404da0
mov edx, dword [ebp - 0x20c]
lea eax, [ebp - 0x1e8]
call fcn.00405168
call fcn.0040376c
call fcn.004028d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x210]
mov edx, 0x4a005c
call fcn.00404da0
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x1e8]
call fcn.00405168
call fcn.0040376c
call fcn.004028d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x18]
lea eax, [ebp - 0x214]
mov edx, 0x4a0070
call fcn.00404da0
mov edx, dword [ebp - 0x214]
lea eax, [ebp - 0x1e8]
call fcn.00405168
call fcn.0040376c
call fcn.004028d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x38]
lea eax, [ebp - 0x218]
mov edx, 0x4a0088
call fcn.00404da0
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x1e8]
call fcn.00405168
call fcn.0040376c
call fcn.004028d4
lea edx, [ebp - 0x220]
xor eax, eax
call fcn.00402c70
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x21c]
call fcn.00409bf0
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x1c]
call fcn.0040deb8
xor edx, edx
lea eax, [ebp - 0x1e8]
call fcn.00405168
call fcn.0040376c
call fcn.004028d4
mov edx, 0x4a0098
lea eax, [ebp - 0x1e8]
call fcn.00405168
call fcn.0040376c
call fcn.004028d4
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x49ff32
inc esi
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738b8
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00405090
dec eax
jne 0x49ff08
lea eax, [ebp - 0x224]
push eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738b8
mov eax, dword [eax + 8]
call fcn.00404d54
mov edi, eax
mov eax, dword [ebp - 0x1c]
call fcn.00404d54
sub edi, eax
push edi
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738b8
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404d54
mov edx, eax
inc edx
pop eax
pop ecx
call fcn.00404fac
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x1e8]
call fcn.00405168
call fcn.0040376c
call fcn.004028d4
jmp 0x49ff2a
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738b8
mov edx, dword [eax + 8]
lea eax, [ebp - 0x1e8]
call fcn.00405168
call fcn.0040376c
call fcn.004028d4
inc ebx
dec esi
jne 0x49fe8d
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0xc]
dec esi
test esi, esi
jl 0x49ff66
inc esi
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004738cc
mov edx, dword [eax + 4]
lea eax, [ebp - 0x1e8]
call fcn.00405168
call fcn.0040376c
call fcn.004028d4
inc ebx
dec esi
jne 0x49ff40
lea eax, [ebp - 0x1e8]
call fcn.004030d0
call fcn.004028d4
lea eax, [ebp - 0x1e8]
call fcn.004031c4
call fcn.004028d4
mov eax, dword [ebp - 4]
mov byte [eax + 5], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x49ffb7
mov eax, dword [ebp - 4]
mov byte [eax + 4], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x12], 0
je 0x49ffb3
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ffec
lea eax, [ebp - 0x224]
mov edx, 0xf
call fcn.00404ac0
lea eax, [ebp - 0x1c]
call fcn.00404a9c
lea eax, [ebp - 0x14]
call fcn.00404a9c
ret