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

Disassembly:
push 0xffffffffffffffff
push 0x4b5cfb
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x578], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ca3b0]
xor eax, esp
push eax
lea eax, [esp + 0x590]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5a0]
xor esi, esi
push esi
mov ebx, edx
mov edx, dword [esp + 0x5a8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5ac]
push esi
mov dword [esp + 0x6c], ecx
push esi
mov ecx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call fcn.00430a90
mov edi, dword [esp + 0x5b0]
cmp edi, esi
mov byte [esp + 0x1b], 1
jl 0x45bd57
mov ebp, dword [esp + 0x5ac]
jg 0x45b8e0
cmp ebp, esi
jbe 0x45bd57
jmp 0x45b8e0
mov ebp, dword [esp + 0x5ac]
mov edi, dword [esp + 0x5b0]
xor esi, esi
call fcn.0046afb0
cmp edi, esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
jg 0x45b928
jl 0x45b8fb
cmp ebp, 0x200
jae 0x45b928
mov ecx, 0x200
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x290]
push esi
push edx
mov edi, ebp
call fcn.004a44c0
add esp, 0xc
mov dword [esp + 0x5ac], esi
mov dword [esp + 0x5b0], esi
mov ebp, esi
jmp 0x45b942
add ebp, 0xfffffe00
adc dword [esp + 0x5b0], 0xffffffff
mov edi, 0x200
mov dword [esp + 0x5ac], ebp
push edi
lea eax, [esp + 0x290]
push eax
mov ecx, ebx
call fcn.00430da0
push 0x200
lea ecx, [esp + 0x290]
push ecx
push 0xffffffffffffffff
mov dword [esp + 0x4c], eax
call fcn.00420800
mov edi, eax
push ebx
lea ecx, [esp + 0x78]
and edi, 0xffff
mov dword [esp + 0x24], esi
call fcn.00462ac0
mov dword [esp + 0x598], esi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push esi
push edx
push eax
mov ecx, ebx
call fcn.00430a90
push pe_nt_image_headers32
lea ecx, [esp + 0x490]
push ecx
mov ecx, ebx
call fcn.00430da0
movzx esi, byte [esp + 0x48d]
movzx edx, byte [esp + 0x48c]
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5b4]
push 0x200
push eax
shl esi, 8
push ebp
add esi, edx
call fcn.004a66c0
or eax, edx
je 0x45b9f1
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0
jmp 0x45b9fb
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x5b0]
push 0
push 0x200
push ecx
push ebp
call fcn.004a5010
mov ebp, eax
add ebp, dword [esp + 0x4c]
xor ecx, ecx
test ebp, ebp
jle 0x45ba5c
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, 0xfffffffe
mov dword [esp + 0x14], eax
cmp ecx, dword [esp + 0x14]
jge 0x45ba5c
movzx edx, byte [esp + ecx*2 + 0x48f]
movzx eax, byte [esp + ecx*2 + 0x48e]
shl edx, 8
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x8c], edx
inc eax
inc ecx
cmp ecx, ebp
mov dword [esp + 0x20], eax
jl 0x45ba2c
add dword [esp + 0x30], 2
adc dword [esp + 0x34], 0
mov dword [esp + 0x598], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.00462af0
cmp esi, edi
jne 0x45ba88
mov byte [esp + 0x1b], 1
jmp 0x45bd39
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x70], esi
call fcn.00430300
mov ecx, dword [esp + 0x5a8]
mov ebp, eax
sub ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x5a4]
push ecx
sbb edx, esi
push eax
push edx
push ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
call fcn.00469a10
mov ecx, dword [ebx + 0x13d8]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp byte [ecx + 0x3934], 0
jne 0x45baf0
cmp edi, dword [0x500184]
je 0x45baf0
push esi
push 0x64
mov eax, edi
cdq
push edx
push eax
push 0x4bbe14
call fcn.00409c40
movzx ecx, byte [esp + 0x1b]
neg ecx
sbb ecx, ecx
and ecx, 0xffff0202
add ecx, 0xfdff
cmp ecx, 0x10000
mov dword [0x500184], edi
mov dword [esp + 0x14], ecx
jge 0x45bc34
jmp 0x45bb28
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov eax, ecx
mov ecx, dword [esp + 0x48]
cdq
cmp edx, ecx
jg 0x45bc34
jl 0x45bb43
cmp eax, dword [esp + 0x44]
jae 0x45bc34
mov edi, dword [esp + 0x44]
sub edi, eax
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
sbb ebp, edx
add eax, dword [esp + 0x24]
push 0
adc edx, dword [esp + 0x2c]
mov esi, edi
push edx
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
call fcn.00430a90
test ebp, ebp
jg 0x45bb96
jl 0x45bb7a
cmp esi, 0x200
jae 0x45bb96
mov edx, 0x200
sub edx, esi
push edx
lea eax, [esp + esi + 0x290]
push 0
push eax
call fcn.004a44c0
add esp, 0xc
jmp 0x45bb9b
mov esi, 0x200
push esi
lea ecx, [esp + 0x290]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00430da0
mov cl, byte [esp + 0x28c]
mov eax, 1
lea esp, [esp]
cmp byte [esp + eax + 0x28c], cl
jne 0x45bbe1
inc eax
cmp eax, 0x200
jb 0x45bbc0
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
add ecx, 0x1ff
jmp 0x45bc1b
push 0x200
lea edx, [esp + 0x290]
push edx
push 0xffffffffffffffff
call fcn.00420800
mov ecx, eax
mov eax, dword [esp + 0x20]
and ecx, 0xffff
xor esi, esi
mov dword [esp + 0x68], ecx
test eax, eax
ja 0x45bd85
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x45bc2c
inc ecx
cmp ecx, 0x10000
mov dword [esp + 0x14], ecx
jl 0x45bb20
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
test esi, esi
setne byte [esp + 0x1b]
test esi, esi
je 0x45bd20
mov edi, dword [esp + 0x60]
mov eax, esi
cdq
add ebp, eax
adc dword [esp + 0x28], edx
sub dword [esp + 0x5ac], eax
mov eax, dword [edi + 8]
sbb dword [esp + 0x5b0], edx
inc dword [edi + 4]
mov ecx, dword [edi + 4]
cmp ecx, eax
jbe 0x45bcae
mov edx, eax
shr edx, 2
lea eax, [edx + eax + 0x20]
mov dword [esp + 0x14], ecx
cmp ecx, eax
ja 0x45bc80
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
lea ecx, [eax*8]
push ecx
push edx
call fcn.004a3e8d
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x45bca7
mov ecx, 0x4d56b4
call fcn.00428da0
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [eax + edi*8 - 8], ecx
mov dword [eax + edi*8 - 4], edx
mov edi, dword [esp + 0x64]
inc dword [edi + 4]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp ecx, eax
jbe 0x45bd17
mov edx, eax
shr edx, 2
lea eax, [edx + eax + 0x20]
mov dword [esp + 0x14], ecx
cmp ecx, eax
ja 0x45bce9
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
lea ecx, [eax*4]
push ecx
push edx
call fcn.004a3e8d
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x45bd10
mov ecx, 0x4d56b4
call fcn.00428da0
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov dword [edx + ecx*4 - 4], esi
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x70]
add ecx, ebp
adc eax, dword [esp + 0x28]
push 0
push eax
push ecx
mov ecx, ebx
call fcn.00430a90
cmp dword [esp + 0x5b0], 0
jg 0x45b8d0
jl 0x45bd57
cmp dword [esp + 0x5ac], 0
ja 0x45b8d0
mov ecx, dword [esp + 0x590]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x578]
xor ecx, esp
call fcn.004a3c63
add esp, 0x588
ret 0x14
mov ecx, dword [esp + 0x68]
cmp dword [esp + esi*4 + 0x8c], ecx
jne 0x45beca
lea ecx, [eax - 1]
cmp esi, ecx
jae 0x45bed8
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov edx, ebx
add edx, 0x200
push 0
adc eax, 0
push eax
push edx
call fcn.00430a90
mov eax, edi
sub eax, 0x200
mov ecx, ebp
sbb ecx, 0
js 0x45bec6
jg 0x45bdd9
test eax, eax
jb 0x45bec6
test ecx, ecx
jg 0x45be0a
jl 0x45bde6
cmp eax, 0x200
jae 0x45be0a
mov ecx, 0x200
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x290]
push 0
push edx
mov dword [esp + 0x68], eax
call fcn.004a44c0
mov eax, dword [esp + 0x68]
add esp, 0xc
jmp 0x45be0f
mov eax, 0x200
mov ecx, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x290]
push eax
call fcn.00430da0
push 0x200
lea ecx, [esp + 0x290]
push ecx
push 0xffffffffffffffff
call fcn.00420800
and eax, 0xffff
cmp dword [esp + esi*4 + 0x90], eax
jne 0x45bec6
mov edx, dword [esp + 0x20]
add edx, 0xfffffffe
cmp esi, edx
jae 0x45bee1
mov eax, edi
sub eax, 0x400
mov ecx, ebp
sbb ecx, 0
test ecx, ecx
jg 0x45be8d
jl 0x45be6f
cmp eax, 0x200
jae 0x45be8d
mov ecx, 0x200
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x290]
push 0
push edx
mov ebx, eax
call fcn.004a44c0
add esp, 0xc
jmp 0x45be92
mov ebx, 0x200
mov ecx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x290]
push eax
call fcn.00430da0
push 0x200
lea ecx, [esp + 0x290]
push ecx
push 0xffffffffffffffff
call fcn.00420800
and eax, 0xffff
cmp dword [esp + esi*4 + 0x94], eax
je 0x45bedd
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jb 0x45bd81
jmp 0x45bc0f
cmp eax, 4
jae 0x45beca
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
lea edx, [esi + 1]
shl edx, 9
mov esi, ecx
sub esi, edx
sub ebx, 1
sbb eax, 0
and ebx, 0xfffffe00
mov edi, ebx
mov ebx, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], eax
jg 0x45bf21
jl 0x45bf1d
cmp edi, dword [esp + 0x24]
jae 0x45bf21
mov ebx, eax
jmp 0x45bf25
mov edi, dword [esp + 0x24]
mov eax, esi
cdq
add eax, edi
adc edx, ebx
test edx, edx
jg 0x45bc17
jl 0x45bf3e
test eax, eax
jae 0x45bc17
xor esi, esi
mov dword [esp + 0x2c], esi
jmp 0x45bc1b