Function at 0x4060ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x874
mov eax, dword [0x49d040]
xor eax, esp
mov dword [esp + 0x86c], eax
xor eax, eax
mov dword [esp + 4], edx
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x18]
xor ebp, ebp
stosd dword es:[edi], eax
mov ebx, ecx
push ebp
push ebp
push 0x11
stosd dword es:[edi], eax
mov dword [esp + 0x60], ebp
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x78]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4063a3
push ebp
lea edx, [esp + 0x58]
mov ecx, edi
call fcn.00401266
pop ecx
test eax, eax
je 0x4063a3
cmp dword [esp + 0x54], ebp
jne 0x406162
cmp dword [0x49eb24], ebp
mov eax, 0x19a
mov edx, 0x32a
mov ecx, ebx
cmovne edx, eax
call fcn.00413cfa
xor eax, eax
inc eax
jmp 0x4063a5
cmp dword [esp + 0x54], 0xff
ja 0x4063a3
mov edx, 0x4857d8
mov ecx, ebx
call fcn.00413c92
mov eax, dword [esp + 0x54]
xor esi, esi
inc esi
mov ebp, esi
lea ecx, [eax*8 + 0x15]
mov dword [esp + 0x10], ecx
cmp eax, esi
jb 0x4062eb
push 0
lea edx, [esp + 0x60]
mov ecx, edi
call fcn.00401266
pop ecx
test eax, eax
je 0x4063a3
push 0
lea edx, [esp + 0x5c]
mov ecx, edi
call fcn.00401266
pop ecx
test eax, eax
je 0x4063a3
mov edi, dword [esp + 0x58]
mov edx, 0x21080001
mov eax, dword [esp + 0x5c]
and edi, 0x7fffffff
mov dword [esp + 0x58], edi
cmp eax, edx
ja 0x406243
je 0x40622f
mov ecx, eax
sub ecx, 0x3043002
je 0x4062aa
sub ecx, 1
je 0x406298
sub ecx, 1
je 0x406286
sub ecx, 1
je 0x406274
dec ecx
sub ecx, 1
je 0x406262
sub ecx, 1
jne 0x4062ba
mov ecx, dword [esp + 0x10]
mov eax, 0x3043008
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ecx
jmp 0x4062ba
mov ecx, dword [esp + 0x10]
push edi
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ecx
push edx
jmp 0x4062bc
mov ecx, eax
sub ecx, 0x24003002
je 0x4062aa
sub ecx, 1
je 0x406298
sub ecx, 1
je 0x406286
sub ecx, 1
je 0x406274
dec ecx
sub ecx, 1
jne 0x4062ba
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ecx
jmp 0x4062ba
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
jmp 0x4062ba
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
jmp 0x4062ba
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ecx
jmp 0x4062ba
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
push edi
push eax
push ebp
push str.Chunk__u:_t__08X____u_bytes__r_n
push 0x400
lea eax, [esp + 0x8c]
push eax
push ebx
call fcn.00413caa
add dword [esp + 0x2c], edi
add esp, 0x1c
mov edi, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x54]
jbe 0x406198
cmp dword [esp + 0x1c], 0
jbe 0x406303
lea eax, [esp + 0x18]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00407c87
pop ecx
and esi, eax
cmp dword [esp + 0x64], 0
jbe 0x406327
push 0x4b27a8
lea eax, [esp + 0x64]
mov edx, edi
push 0x4b27e8
push eax
mov ecx, ebx
call fcn.0040829b
add esp, 0xc
and esi, eax
cmp dword [esp + 0x28], 0
jbe 0x40633f
lea eax, [esp + 0x24]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00408ebf
pop ecx
and esi, eax
cmp dword [esp + 0x34], 0
jbe 0x406357
lea eax, [esp + 0x30]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040a513
pop ecx
and esi, eax
cmp dword [esp + 0x40], 0
jbe 0x40636f
lea eax, [esp + 0x3c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00409bb0
pop ecx
and esi, eax
cmp dword [esp + 0x4c], 0
jbe 0x406387
lea eax, [esp + 0x48]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040a675
pop ecx
and esi, eax
cmp dword [esp + 0x70], 0
jbe 0x40639f
lea eax, [esp + 0x6c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00408f67
pop ecx
and esi, eax
mov eax, esi
jmp 0x4063a5
xor eax, eax
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d68f
add esp, 0x874
ret