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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
or edx, 0xffffffff
movlpd qword [esp + 0x38], xmm0
mov ecx, esi
call fcn.004b3fa0
cmp dword [esi + 0x58], 2
mov dword [esp + 0x4c], eax
mov eax, edx
mov dword [esp + 0x50], eax
jl 0x4b4fa1
cmp dword [esi + 4], 0
jne 0x4b4569
mov eax, 0xffffff76
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
test edx, edx
jl 0x4b4fa1
mov ecx, dword [ebp + 0xc]
jg 0x4b4581
test ecx, ecx
jb 0x4b4fa1
cmp edx, eax
jg 0x4b4fa1
mov edx, dword [esp + 0x4c]
jl 0x4b4597
cmp ecx, edx
ja 0x4b4fa1
mov edi, dword [esi + 0x34]
sub edi, 1
mov dword [esp + 0x30], edi
js 0x4b45d9
mov eax, dword [esi + 0x44]
mov ecx, edi
shl ecx, 4
add eax, 8
add eax, ecx
mov ecx, dword [esp + 0x50]
sub edx, dword [eax]
sbb ecx, dword [eax + 4]
cmp dword [ebp + 0x10], ecx
jg 0x4b45cd
jl 0x4b45c5
cmp dword [ebp + 0xc], edx
jae 0x4b45cd
sub eax, 0x10
sub edi, 1
jns 0x4b45b4
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x30], edi
mov eax, dword [esi + 0x38]
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x8c], 0
mov ecx, dword [eax + edi*8 + 8]
mov eax, dword [eax + edi*8 + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x30]
add ecx, ecx
mov edx, dword [eax + edi*8]
mov edi, dword [eax + edi*8 + 4]
mov eax, dword [esi + 0x44]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
mov edi, dword [eax + ecx*8 + 4]
mov esi, dword [eax + ecx*8]
mov dword [esp + 0x60], edi
mov edi, dword [eax + ecx*8 + 8]
mov eax, dword [eax + ecx*8 + 0xc]
add edi, esi
mov ecx, dword [esp + 0x60]
adc eax, ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], eax
mov eax, esi
sub eax, dword [esp + 0x4c]
mov esi, dword [ebp + 8]
sbb ecx, dword [esp + 0x50]
add eax, dword [ebp + 0xc]
mov dword [esp + 0x54], edi
adc ecx, dword [ebp + 0x10]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
cmp edx, ecx
jne 0x4b46c9
cmp edi, dword [esp + 0x2c]
jne 0x4b46c9
push edi
push edx
mov ecx, esi
call fcn.004b2740
cdq
add esp, 8
mov edi, eax
mov ecx, edi
or ecx, edx
jne 0x4b4f6e
push ecx
push 1
lea edx, [esp + 0x78]
mov ecx, esi
call fcn.004b27d0
add esp, 8
mov edi, eax
test edx, edx
jl 0x4b4f6e
jg 0x4b46b4
test edi, edi
jb 0x4b4f6e
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x8c], 1
jmp 0x4b46cd
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jg 0x4b4e90
jl 0x4b46e5
cmp edx, ecx
jae 0x4b4e90
mov edi, ecx
mov ecx, dword [esp + 0x2c]
sub edi, edx
sbb ecx, eax
mov dword [esp + 0x34], ecx
test ecx, ecx
jg 0x4b470a
jl 0x4b4701
cmp edi, 0x10000
jae 0x4b470a
mov ecx, edx
mov edx, eax
jmp 0x4b47a7
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x48]
sbb edx, dword [esp + 0x60]
call fcn.004ce8d0
mov edx, dword [esp + 0x34]
mov ecx, edi
movsd qword [esp + 0x38], xmm0
call fcn.004ce8d0
movsd xmm1, qword [esp + 0x38]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
sbb edx, dword [esp + 0x60]
mulsd xmm1, xmm0
movsd qword [esp + 0x38], xmm1
call fcn.004ce8d0
movsd xmm1, qword [esp + 0x38]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.004ce77f
mov edi, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x1c]
add ecx, edi
mov dword [esp + 0x10], edi
adc edx, eax
sub ecx, 0x10000
mov dword [esp + 0x20], ecx
sbb edx, 0
add dword [esp + 0x10], 0x10000
mov dword [esp + 0x24], edx
adc eax, 0
cmp edx, eax
jg 0x4b47af
jl 0x4b47a1
cmp ecx, dword [esp + 0x10]
jae 0x4b47af
mov edx, dword [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
push edx
push ecx
mov ecx, esi
call fcn.004b2740
cdq
add esp, 8
mov edi, eax
or eax, edx
jne 0x4b4f6e
mov eax, dword [esp + 0x28]
nop word [eax + eax]
mov ecx, eax
lea edx, [esp + 0x70]
sub ecx, dword [esi + 8]
mov eax, dword [esp + 0x2c]
sbb eax, dword [esi + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004b27d0
mov edi, eax
add esp, 8
mov eax, edx
mov dword [esp + 0x6c], eax
cmp edi, 0xffffff80
jne 0x4b4802
cmp eax, 0xffffffff
je 0x4b4f6e
test eax, eax
jg 0x4b487c
jl 0x4b480c
test edi, edi
jae 0x4b487c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add eax, 1
mov edx, dword [esp + 0x24]
adc ecx, 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], ecx
cmp edx, ecx
jl 0x4b4b07
mov ecx, dword [esp + 0x20]
jg 0x4b483c
cmp ecx, eax
jbe 0x4b4b07
mov eax, ecx
or eax, edx
je 0x4b4f6e
add ecx, 0xffff0000
mov dword [esp + 0x20], ecx
adc edx, 0xffffffff
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x1c]
jg 0x4b4875
jl 0x4b4865
cmp ecx, dword [esp + 0x18]
ja 0x4b4875
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
push edx
push ecx
jmp 0x4b4a9f
mov edx, dword [esp + 0x70]
mov dword [esp + 0x8c], 1
movzx ecx, byte [edx + 0x11]
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
mov edx, dword [esp + 0x30]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x40]
cmp ecx, dword [eax + edx*4]
jne 0x4b4ab4
mov ecx, dword [esp + 0x70]
movzx eax, byte [ecx + 0xd]
cdq
shld edx, eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0xc]
mov dword [esp + 0x14], edx
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0xb]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0xa]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 9]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 8]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 7]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 6]
mov ecx, dword [esp + 0x10]
cdq
or dword [esp + 0x14], edx
or ecx, eax
mov edx, dword [esp + 0x14]
mov eax, ecx
and eax, edx
mov dword [esp + 0x10], ecx
cmp eax, 0xffffffff
je 0x4b4ab4
cmp edx, dword [esp + 0x48]
jg 0x4b4a19
jl 0x4b49b8
cmp ecx, dword [esp + 0x44]
jae 0x4b4a19
mov eax, dword [esp + 0x6c]
mov edx, dword [esi + 8]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x44]
sub eax, ecx
mov dword [esp + 0x68], edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
sbb eax, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov dword [esp + 0x5c], ecx
test eax, eax
jg 0x4b4aeb
jl 0x4b4a08
cmp dword [esp + 0x34], 0xac44
ja 0x4b4aeb
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
jmp 0x4b4ab4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
adc eax, 0
mov dword [esp + 0x38], eax
cmp ecx, eax
jl 0x4b4b07
mov eax, dword [esp + 0x20]
jg 0x4b4a4b
cmp eax, dword [esp + 0x34]
jbe 0x4b4b07
mov edx, dword [esp + 0x28]
cmp edx, dword [esi + 8]
mov edx, dword [esp + 0x18]
jne 0x4b4ad3
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
jne 0x4b4ad3
add eax, 0xffff0000
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x6c]
adc ecx, 0xffffffff
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x1c]
jg 0x4b4a9d
jl 0x4b4a8d
cmp eax, edx
ja 0x4b4a9d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
push ecx
push eax
mov ecx, esi
call fcn.004b2740
cdq
add esp, 8
mov edi, eax
or eax, edx
jne 0x4b4f6e
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x1c], eax
jg 0x4b4b07
mov eax, dword [esp + 0x28]
jl 0x4b47d0
cmp dword [esp + 0x18], eax
jae 0x4b4b07
jmp 0x4b47d0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
jl 0x4b46e5
jg 0x4b4b07
cmp edx, ecx
jb 0x4b46e5
mov ecx, dword [esp + 0x68]
mov eax, ecx
mov edx, dword [esp + 0x64]
and eax, edx
cmp eax, 0xffffffff
je 0x4b4e90
push edx
push ecx
mov ecx, esi
call fcn.004b2740
cdq
add esp, 8
mov edi, eax
mov dword [esi + 0x50], 0xffffffff
or eax, edx
mov dword [esi + 0x54], 0xffffffff
jne 0x4b4f6e
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x78]
mov ecx, esi
call fcn.004b27d0
add esp, 8
mov edi, eax
test edx, edx
jl 0x4b4f6e
jg 0x4b4b67
test edi, edi
jb 0x4b4f6e
mov edi, dword [esp + 0x30]
cmp edi, dword [esi + 0x60]
je 0x4b4b8c
mov ecx, esi
call fcn.004b36a0
mov eax, dword [esi + 0x40]
mov dword [esi + 0x60], edi
mov edx, dword [eax + edi*4]
mov dword [esi + 0x5c], edx
mov dword [esi + 0x58], 3
jmp 0x4b4b9a
lea ecx, [esi + 0x1e0]
call fcn.004b6130
mov edx, dword [esi + 0x5c]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004c4350
lea edx, [esp + 0x70]
call fcn.004c3fc0
nop dword [eax]
test edi, edi
je 0x4b4bce
cmp dword [edi], 0
je 0x4b4bce
push 0
lea edx, [esp + 0x94]
mov ecx, edi
call fcn.004c4370
add esp, 4
jmp 0x4b4bd0
xor eax, eax
cdq
mov edi, eax
or eax, edx
jne 0x4b4dda
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
mov esi, edx
mov edi, dword [esp + 0x68]
mov dword [esp + 0x18], edx
cmp esi, dword [eax + ecx*8 + 4]
mov esi, dword [ebp + 8]
jl 0x4b4dda
jg 0x4b4c10
mov esi, edi
cmp esi, dword [eax + ecx*8]
mov esi, dword [ebp + 8]
jbe 0x4b4dda
nop dword [eax]
mov eax, edi
mov dword [esp + 0x48], 0xffffffff
mov ecx, edx
mov dword [esp + 0x44], 0xffffffff
jmp 0x4b4c34
mov ecx, dword [esp + 0x58]
add eax, 0xffff0000
mov dword [esp + 0x54], eax
adc ecx, 0xffffffff
mov dword [esp + 0x58], ecx
test ecx, ecx
jg 0x4b4c67
jl 0x4b4c4e
test eax, eax
jae 0x4b4c67
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
push ecx
push eax
mov ecx, esi
call fcn.004b2740
cdq
add esp, 8
mov ecx, eax
or ecx, edx
jne 0x4b4d4b
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp edx, dword [esp + 0x18]
jg 0x4b4ce4
jl 0x4b4c90
cmp eax, edi
jae 0x4b4ce4
mov ecx, edi
xorps xmm0, xmm0
sub ecx, eax
movaps xmmword [esp + 0x70], xmm0
mov eax, dword [esp + 0x18]
sbb eax, edx
lea edx, [esp + 0x70]
push eax
push ecx
mov ecx, esi
call fcn.004b27d0
add esp, 8
cmp eax, 0xffffff80
jne 0x4b4cc0
cmp edx, 0xffffffff
je 0x4b4e2a
test edx, edx
jl 0x4b4ce4
jg 0x4b4cca
test eax, eax
jb 0x4b4ce4
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
cmp edx, dword [esp + 0x18]
jl 0x4b4c90
jg 0x4b4ce4
cmp eax, edi
jb 0x4b4c90
mov ecx, dword [esp + 0x48]
mov eax, ecx
mov edx, dword [esp + 0x44]
and eax, edx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x54]
je 0x4b4c30
cmp dword [esp + 0x74], 0
jne 0x4b4d41
push edx
push ecx
mov ecx, esi
call fcn.004b2740
cdq
add esp, 8
mov edi, eax
mov dword [esp + 0x18], edx
or eax, edx
jne 0x4b4d51
push eax
push 0x10000
lea edx, [esp + 0x78]
mov ecx, esi
call fcn.004b27d0
add esp, 8
test edx, edx
jl 0x4b4f61
jg 0x4b4d41
test eax, eax
jb 0x4b4f61
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
jmp 0x4b4d4d
mov edi, eax
mov dword [esp + 0x18], edx
test edx, edx
jl 0x4b4f6e
jg 0x4b4d63
test edi, edi
jb 0x4b4f6e
mov eax, dword [esp + 0x70]
movzx ecx, byte [eax + 0x11]
movzx eax, byte [eax + 0x10]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x70]
shl ecx, 8
movzx eax, byte [eax + 0xf]
or ecx, eax
mov eax, dword [esp + 0x70]
shl ecx, 8
movzx eax, byte [eax + 0xe]
or ecx, eax
cmp ecx, dword [esi + 0x5c]
jne 0x4b4dbe
lea ecx, [esp + 0x70]
call fcn.004c3a80
cmp edx, 0xffffffff
jg 0x4b4e34
jl 0x4b4db0
cmp eax, 0xffffffff
ja 0x4b4e34
mov eax, dword [esp + 0x70]
test byte [eax + 5], 1
je 0x4b4e34
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x30]
cmp edx, dword [eax + ecx*8 + 4]
jg 0x4b4c10
jl 0x4b4dda
cmp edi, dword [eax + ecx*8]
ja 0x4b4c10
test edx, edx
jl 0x4b4e86
jg 0x4b4dec
test edi, edi
jb 0x4b4e86
mov edx, dword [esp + 0xa0]
mov eax, edx
mov edi, dword [esp + 0xa4]
and eax, edi
cmp eax, 0xffffffff
jne 0x4b4e48
lea edi, [esi + 0x78]
test edi, edi
je 0x4b4bce
cmp dword [edi], 0
je 0x4b4bb0
push 1
xor edx, edx
mov ecx, edi
call fcn.004c4370
add esp, 4
jmp 0x4b4bb0
mov edi, 0xffffff80
jmp 0x4b4f66
push dword [esp + 0x18]
push edi
push esi
call fcn.004b4040
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x44]
shl ecx, 4
sub edx, dword [ecx + eax]
sbb edi, dword [ecx + eax + 4]
test edi, edi
jg 0x4b4e73
jl 0x4b4e62
test edx, edx
jae 0x4b4e73
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add edx, dword [esp + 0x4c]
mov dword [esi + 0x50], edx
adc edi, dword [esp + 0x50]
mov dword [esi + 0x54], edi
jmp 0x4b4f2f
mov edi, 0xffffff78
jmp 0x4b4f66
cmp dword [esp + 0x8c], 0
je 0x4b4f6e
mov ecx, dword [esi + 0x3c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx + edx*8]
jne 0x4b4f6e
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + edx*8 + 4]
jne 0x4b4f6e
lea ecx, [esp + 0x70]
call fcn.004c3b00
mov ecx, dword [esi + 0x40]
mov edx, dword [esp + 0x30]
cmp eax, dword [ecx + edx*4]
jne 0x4b4f6e
mov eax, dword [esp + 0x4c]
mov edi, edx
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x54], eax
cmp edi, dword [esi + 0x60]
je 0x4b4f0a
mov ecx, esi
call fcn.004b36a0
mov eax, dword [esi + 0x40]
mov dword [esi + 0x60], edi
mov edx, dword [eax + edi*4]
mov dword [esi + 0x5c], edx
mov dword [esi + 0x58], 3
jmp 0x4b4f18
lea ecx, [esi + 0x1e0]
call fcn.004b6130
mov edx, dword [esi + 0x5c]
lea ecx, [esi + 0x78]
call fcn.004c4350
lea edx, [esp + 0x70]
call fcn.004c3fc0
mov edx, dword [esi + 0x50]
mov edi, dword [esi + 0x54]
cmp edi, dword [ebp + 0x10]
jg 0x4b4f61
mov edi, dword [ebp + 0xc]
jl 0x4b4f3d
cmp edx, edi
ja 0x4b4f61
or edx, 0xffffffff
mov ecx, esi
call fcn.004b3fa0
cmp dword [ebp + 0x10], edx
jg 0x4b4f61
jl 0x4b4f52
cmp edi, eax
ja 0x4b4f61
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi + 0x68], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 0xffffff7f
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esi + 0x1e0]
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x54], 0xffffffff
call fcn.004b5d40
lea ecx, [esi + 0x250]
call fcn.004b5980
mov dword [esi + 0x58], 2
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff7d
pop esi
mov esp, ebp
pop ebp
ret