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

Disassembly:
sub esp, 0x89c
mov eax, dword [0x49d040]
xor eax, esp
mov dword [esp + 0x894], eax
xor eax, eax
mov dword [esp + 8], edx
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x1c]
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 + 0xa0], ebp
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x88]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x94]
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 0x4069dd
push ebp
lea edx, [esp + 0x98]
mov ecx, edi
call fcn.00401266
pop ecx
test eax, eax
je 0x4069dd
cmp dword [esp + 0x94], ebp
jne 0x406695
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 0x4069df
cmp dword [esp + 0x94], 0xff
ja 0x4069dd
mov edx, 0x4857d8
mov ecx, ebx
call fcn.00413c92
mov eax, dword [esp + 0x94]
xor esi, esi
inc esi
mov ebp, esi
lea ecx, [eax*8 + 0x15]
mov dword [esp + 0x14], ecx
cmp eax, esi
jb 0x4068e0
push 0
lea edx, [esp + 0xa0]
mov ecx, edi
call fcn.00401266
pop ecx
test eax, eax
je 0x4069dd
push 0
lea edx, [esp + 0x9c]
mov ecx, edi
call fcn.00401266
pop ecx
test eax, eax
je 0x4069dd
mov edi, dword [esp + 0x98]
mov ecx, 0x90f4000
mov eax, dword [esp + 0x9c]
and edi, 0x7fffffff
mov dword [esp + 0x98], edi
cmp eax, ecx
ja 0x406804
je 0x4067f2
mov ecx, 0x301c000
cmp eax, ecx
ja 0x40678d
je 0x406887
mov ecx, eax
mov edx, 0x1001000
sub ecx, edx
je 0x406778
sub ecx, 0x2019003
je 0x406841
sub ecx, 1
je 0x40682f
dec ecx
sub ecx, 1
jne 0x4067ce
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
jmp 0x4067ce
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
jmp 0x4068ac
mov ecx, eax
sub ecx, 0x301c001
je 0x406872
sub ecx, 0x14fff
je 0x4067f2
sub ecx, 0x7000
je 0x4067d5
sub ecx, 1
jne 0x4067ce
mov ecx, dword [esp + 0x14]
mov eax, 0x3038001
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], ecx
push edi
push eax
jmp 0x4068ae
mov ecx, dword [esp + 0x14]
mov eax, 0x3038000
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ecx
jmp 0x4067ce
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ecx
jmp 0x4067ce
mov ecx, 0x2e001006
cmp eax, ecx
ja 0x406856
je 0x406766
mov ecx, eax
sub ecx, 0x2400a003
je 0x406841
sub ecx, 1
je 0x40682f
sub ecx, 0x9ff6fff
je 0x406841
sub ecx, 1
jne 0x4067ce
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
jmp 0x4067ce
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
jmp 0x4067ce
mov ecx, eax
mov edx, 0x2e001008
sub ecx, edx
je 0x40689c
sub ecx, 0xff8
je 0x406887
sub ecx, 1
jne 0x4067ce
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ecx
jmp 0x4067ce
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ecx
jmp 0x4067ce
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ecx
push edi
push edx
push ebp
push str.Chunk__u:_t__08X____u_bytes__r_n
push 0x400
lea eax, [esp + 0xb4]
push eax
push ebx
call fcn.00413caa
add dword [esp + 0x30], edi
add esp, 0x1c
mov edi, dword [esp + 0x18]
inc ebp
cmp ebp, dword [esp + 0x94]
jbe 0x4066d1
cmp dword [esp + 0x20], 0
jbe 0x4068f8
lea eax, [esp + 0x1c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040c9a0
pop ecx
and esi, eax
cmp dword [esp + 0x2c], 0
jbe 0x406910
lea eax, [esp + 0x28]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040a8dc
pop ecx
and esi, eax
cmp dword [esp + 0x38], 0
jbe 0x406928
lea eax, [esp + 0x34]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040ae54
pop ecx
and esi, eax
cmp dword [esp + 0x44], 0
jbe 0x406940
lea eax, [esp + 0x40]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040b2ab
pop ecx
and esi, eax
cmp dword [esp + 0x50], 0
jbe 0x406958
lea eax, [esp + 0x4c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040b3e9
pop ecx
and esi, eax
cmp dword [esp + 0x5c], 0
jbe 0x406970
lea eax, [esp + 0x58]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040b501
pop ecx
and esi, eax
cmp dword [esp + 0x68], 0
jbe 0x406988
lea eax, [esp + 0x64]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040b6d5
pop ecx
and esi, eax
cmp dword [esp + 0x74], 0
jbe 0x4069a0
lea eax, [esp + 0x70]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040c765
pop ecx
and esi, eax
cmp dword [esp + 0x80], 0
jbe 0x4069bb
lea eax, [esp + 0x7c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040b770
pop ecx
and esi, eax
cmp dword [esp + 0x8c], 0
jbe 0x4069d9
lea eax, [esp + 0x88]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040b88e
pop ecx
and esi, eax
mov eax, esi
jmp 0x4069df
xor eax, eax
mov ecx, dword [esp + 0x8a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d68f
add esp, 0x89c
ret