Function at 0x452290
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e9fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [esp + 0x74]
test eax, eax
mov dword [esp], 0x200
je 0x4522ba
mov dword [esp], eax
mov eax, dword [esp + 0x78]
test eax, eax
mov edx, dword [esp + 0x54]
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, edx
je 0x452312
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov ebx, eax
or ebx, ecx
mov ebx, dword [esp + 0x78]
je 0x4522f1
mov esi, ebp
add esi, eax
mov edi, ebx
adc edi, ecx
mov eax, dword [esp + 0x10]
cmp eax, 1
jle 0x452389
cdq
push edx
push eax
push ebx
push ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
call fcn.004b65e0
jmp 0x452352
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov ebx, ecx
or ebx, eax
mov ebx, dword [esp + 0x78]
je 0x45232f
mov esi, ebp
add esi, ecx
mov edi, ebx
adc edi, eax
mov eax, dword [esp + 0x10]
cmp eax, 1
jle 0x452389
cdq
push edx
push eax
push ebx
push ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
call fcn.004b65e0
mov dword [esp + 0x88], eax
cdq
mov ecx, dword [esp + 0x3c]
sub ebp, eax
mov eax, dword [esp + 0x88]
sbb ebx, edx
cdq
add ebp, eax
mov eax, dword [esp + 0x40]
push eax
push ecx
adc ebx, edx
push ebx
push ebp
call fcn.004b65e0
mov dword [esp + 0x88], eax
cdq
sub ebp, eax
sbb ebx, edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x78], ebx
jmp 0x452394
mov dword [esp + 0x88], 0
cmp edi, edx
jl 0x4523a6
jg 0x4523a0
cmp esi, dword [esp + 0x60]
jbe 0x4523a6
mov esi, dword [esp + 0x60]
mov edi, edx
mov eax, ebp
and eax, 0xfffffe00
mov dword [esp + 0x2c], eax
mov eax, esi
add eax, 0x1ff
mov ecx, edi
adc ecx, 0
and eax, 0xfffffe00
cmp ecx, edx
jl 0x4523d4
jg 0x4523ce
cmp eax, dword [esp + 0x60]
jbe 0x4523d4
mov eax, dword [esp + 0x60]
mov ecx, edx
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x78]
sub eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x88]
mov edx, ebx
sbb ecx, edx
cdq
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov ecx, eax
add ecx, ebp
mov eax, edx
adc eax, ebx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], edx
cdq
mov ebx, eax
mov eax, esi
sub eax, ebx
mov ebx, edi
sbb ebx, edx
sub eax, ecx
mov dword [esp + 0x24], eax
sbb ebx, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x40]
cmp ecx, eax
mov dword [esp + 0x54], eax
jg 0x45254f
jl 0x45244d
cmp dword [esp + 0x3c], 0x7fffffff
ja 0x45254f
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x40]
push edx
push 2
push ecx
mov ecx, dword [esp + 0x6c]
push eax
push ecx
call fcn.004a2770
add esp, 0x18
test eax, eax
mov dword [esp + 0x38], eax
je 0x45254f
mov esi, dword [esp + 0x60]
sub esi, dword [esp + 0x2c]
mov ecx, eax
add esi, ecx
xor ecx, ecx
xor ebp, ebp
test ebx, ebx
jl 0x45253f
jg 0x45249e
mov eax, dword [esp + 0x24]
test eax, eax
jb 0x45253f
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x68]
dec edx
neg eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x84], eax
sub edi, esi
lea ebx, [ebx]
mov eax, dword [esp + 0x6c]
test eax, eax
mov edx, esi
mov dword [esp + 0x88], eax
jl 0x4524e4
mov al, byte [edi + edx]
sub al, byte [edx]
inc edx
test al, al
jne 0x452514
dec dword [esp + 0x88]
jns 0x4524d1
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x64]
add ecx, esi
push eax
adc ebp, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
mov eax, esi
pop esi
mov edx, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
movsx eax, al
test eax, eax
je 0x4524e4
mov eax, dword [esp + 0x10]
cdq
add ecx, eax
mov eax, dword [esp + 0x10]
adc ebp, edx
mov edx, dword [esp + 0x84]
add esi, eax
add edi, edx
cmp ebp, ebx
jg 0x45253f
jl 0x4524c0
cmp ecx, dword [esp + 0x24]
jbe 0x4524c0
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x45288e
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x88]
lea ebx, [edx + eax]
mov eax, ebx
cdq
mov ecx, esi
sub ecx, eax
push 0
mov dword [esp + 0x40], ecx
mov eax, edi
sbb eax, edx
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x48], eax
or eax, 0xffffffff
push edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x68]
push ebp
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp ebp, dword [esp + 0x60]
jne 0x45288e
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x64]
jne 0x45288e
sub esi, ebp
sbb edi, eax
mov ecx, edi
lea edi, [ebx*4]
mov eax, edi
cdq
cmp edx, ecx
jl 0x4525cb
jg 0x4525c9
cmp eax, esi
jbe 0x4525cb
mov edi, esi
add ebx, 0x1ff
lea esi, [edi + 0x1ff]
and esi, 0xfffffe00
and ebx, 0xfffffe00
cmp esi, 0x200000
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], esi
jge 0x4525fc
mov esi, 0x200000
mov dword [esp + 0x14], esi
xor ecx, ecx
mov edi, edi
lea eax, [esi + 0x100001]
push ecx
call fcn.00449190
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x45261d
mov byte [esi + ecx + 0x100000], 0
test ecx, ecx
mov ebx, ecx
mov dword [esp + 0x84], ebx
je 0x45263f
lea ebx, [ecx + 0x100000]
and ebx, 0xfff00000
mov dword [esp + 0x84], ebx
jne 0x45265e
cmp esi, edi
jl 0x452826
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, 0x1ff
and eax, 0xfffffe00
test ebx, ebx
mov esi, eax
je 0x452600
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], ebx
jl 0x45286e
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x78], ecx
mov dword [esp + 0x20], 0x3e8
jg 0x452805
jl 0x4526a0
cmp ebp, dword [esp + 0x3c]
ja 0x452805
nop
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x14]
sub ecx, ebp
sbb esi, edx
add ecx, 0x1ff
adc esi, 0
sub edi, ebx
mov eax, edi
cdq
and ecx, 0xfffffe00
cmp esi, edx
jl 0x4526d6
jg 0x4526d2
cmp ecx, eax
jbe 0x4526d6
mov ecx, eax
mov esi, edx
test esi, esi
jl 0x452805
jg 0x4526e8
test ecx, ecx
jbe 0x452805
mov eax, dword [esp + 0x84]
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x64]
push ecx
lea ecx, [ebx + eax]
push ecx
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45271a
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x45272d
mov eax, dword [esp + 0x20]
dec eax
test eax, eax
mov dword [esp + 0x20], eax
jle 0x45282e
xor eax, eax
cmp eax, edi
jle 0x452733
mov eax, edi
add eax, ebx
mov ebx, eax
mov dword [esp + 0x18], eax
cmp ebx, dword [esp + 0x24]
jl 0x4527eb
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
add ecx, eax
mov eax, ebx
sub eax, edx
add eax, edi
cdq
idiv edi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x2c], 0
mov esi, eax
test esi, esi
jle 0x4527c8
jmp 0x452780
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x84]
call fcn.00449820
test eax, eax
jne 0x452839
mov ecx, dword [esp + 0x2c]
mov eax, edi
cdq
inc ecx
add ebp, eax
mov eax, dword [esp + 0x78]
adc eax, edx
mov edx, dword [esp + 0x84]
add edx, edi
cmp ecx, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x84], edx
jl 0x452780
mov edx, dword [esp + 0x1c]
imul esi, edi
sub ebx, esi
test ebx, ebx
mov dword [esp + 0x84], edx
jle 0x4527eb
mov eax, edx
push ebx
add esi, eax
push esi
push eax
call fcn.004b3b10
add esp, 0xc
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x40]
jl 0x4526a0
jg 0x452805
cmp ebp, dword [esp + 0x3c]
jbe 0x4526a0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x45288e
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45288e
mov dword [esp + 0x14], esi
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x60]
call fcn.00443880
jmp 0x452885
lea ecx, [esp + 0x60]
call fcn.00443880
lea ecx, [esp + 0x34]
call fcn.004437a0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
add eax, ebp
pop ebp
adc edx, ecx
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
test ecx, ecx
je 0x452885
mov edx, dword [0x51d3c8]
add ecx, 0xfffffff8
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x34]
call fcn.004437a0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
or edx, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret