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

Disassembly:
sub esp, 0xc4
push esi
mov esi, dword [0x719358]
test byte [esi + 0x78], 1
je 0x4b34a9
cmp eax, 0xffffffff
je 0x4b34a9
mov edx, dword [ecx + 0x34]
movsx ecx, word [ecx + 2]
lea ecx, [ecx + ecx*4]
shl ecx, 4
push ebp
mov ebp, dword [0x87b7b4]
lea esi, [ecx + esi + 0x28]
and eax, 0xffff
xor ecx, ecx
push edi
mov edi, dword [0x746eac]
shl eax, 5
cmp word [edi + 0x3c], 2
mov eax, dword [eax + ebp + 0x14]
setne cl
mov dword [esp + 0x24], esi
mov edi, ecx
mov ecx, dword [0x87a018]
mov cx, word [ecx + 0xc]
cmp cx, 1
jne 0x4b2df0
or edi, 2
jmp 0x4b2df3
and edi, 0xfffffffd
cmp cx, 1
jle 0x4b2dfe
or edi, 4
jmp 0x4b2e01
and edi, 0xfffffffb
cmp edx, 0xffffffff
mov dword [esp + 0x60], edi
je 0x4b34a7
mov ecx, dword [0x85ff50]
mov ecx, dword [ecx + 0x34]
and edx, 0xffff
lea edx, [edx + edx*2]
mov edx, dword [ecx + edx*4 + 8]
mov dword [esp + 0x90], eax
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x94]
mov dword [esp + 0x44], edx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x4c]
mov edx, 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x3c], edx
nop
movsx ecx, dx
mov eax, dword [esp + ecx*4 + 0x8c]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
lea ecx, [esp + ecx*4 + 0x90]
je 0x4b2e7e
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + ebp + 0x14]
inc edx
cmp dx, 0x10
mov dword [ecx], eax
jl 0x4b2e50
test dx, dx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0
jle 0x4b34a7
push ebx
movsx ecx, word [esp + 0x44]
mov eax, dword [esp + ecx*4 + 0x94]
mov ecx, dword [0x87a018]
xor edx, edx
cmp word [ecx + 0xc], 1
mov ecx, dword [eax + 0x84]
mov dword [esp + 0x72], edx
mov dword [esp + 0x76], edx
mov dword [esp + 0x7a], edx
mov dword [esp + 0x7e], edx
mov dword [esp + 0x82], edx
mov dword [esp + 0x86], edx
mov dword [esp + 0x8a], edx
mov dword [esp + 0x8e], edx
mov word [esp + 0x92], dx
setg dl
test ecx, ecx
mov dword [esp + 0x54], eax
mov word [esp + 0x70], 4
mov byte [esp + 0x5c], dl
mov dword [esp + 0x50], 0
jle 0x4b3492
xor eax, eax
jmp 0x4b2f10
mov ecx, dword [esp + 0x54]
imul eax, eax, 0x68
add eax, dword [ecx + 0x88]
mov dword [esp + 0x24], eax
movsx eax, word [eax]
movsx ecx, ax
mov edx, 1
shl edx, cl
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
test eax, edx
je 0x4b3474
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 4]
mov edx, 1
shl edx, cl
movsx ecx, word [esp + 0x64]
test ecx, edx
je 0x4b3474
movsx edx, word [esp + 0x4c]
mov eax, dword [esp + 0x28]
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x34]
test eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x58], 0
jle 0x4b3474
xor eax, eax
mov ecx, dword [esp + 0x24]
imul eax, eax, 0x6c
add eax, dword [ecx + 0x38]
mov ebp, eax
mov eax, dword [ebp + 0x48]
test al, al
js 0x4b3459
test al, 4
je 0x4b2fac
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 4]
test ecx, ecx
jle 0x4b3459
test al, 0x40
je 0x4b2fbf
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x4b3459
mov edx, dword [0x87a018]
cmp word [edx + 0xc], 1
jle 0x4b2fda
test byte [ebp + 0xc], 2
mov dword [esp + 0x2c], 0x3f000000
je 0x4b2fe2
mov dword [esp + 0x2c], 0x3f800000
test al, 2
jne 0x4b3012
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x30]
mov ecx, dword [0x87b7b4]
and edx, 0xffff
shl edx, 5
mov edx, dword [edx + ecx + 0x14]
movsx ecx, word [ebp + 0x46]
mov esi, dword [edx + 0x58]
shl ecx, 6
add ecx, esi
mov dword [esp + 0x14], ecx
jmp 0x4b301a
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x4c]
movsx ecx, dx
xor ebx, ebx
cmp ecx, 0x12
ja case.default.0x4b3033
movzx ecx, byte [ecx + 0x4b34c4]
jmp dword [ecx*4 + 0x4b34b4]
test al, 1
je 0x4b305d
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
xor ebx, ebx
test eax, eax
jle 0x4b3221
lea esi, [ebp + 0x24]
xor edi, edi
call fcn.004aba50
jmp 0x4b3224
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x24]
mov bx, word [ecx]
mov dword [esp + 0x1c], edx
jmp case.default.0x4b3033
test al, 0x20
mov ecx, dword [esp + 0x20]
je 0x4b3085
cmp dword [ecx], 0
je 0x4b3459
xor ebx, ebx
jmp 0x4b3093
mov bx, word [ecx]
mov edx, eax
shr edx, 2
and edx, 1
sub bx, dx
test al, 1
je 0x4b3221
mov edx, dword [esp + 0x28]
cmp dword [edx], 0
jle 0x4b3221
lea esi, [ebp + 0x24]
xor edi, edi
call fcn.004aba50
jmp 0x4b3224
cmp dx, 0x12
jne 0x4b30f7
fld dword [0x672af8]
mov ecx, dword [esp + 0xd8]
fld dword [ecx + 4]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4b3174
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x208]
test ah, 8
je 0x4b3174
mov byte [esp + 0x13], 1
jmp 0x4b31b1
cmp dx, 8
jne 0x4b312a
mov eax, dword [esp + 0xd8]
cmp word [eax + 0xe], 0
jne 0x4b3174
cmp word [eax + 0x12], 0
jne 0x4b3174
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x208]
test dl, ch
je 0x4b3174
mov byte [esp + 0x13], 1
jmp 0x4b31b1
cmp dx, 9
jne 0x4b317b
mov esi, dword [esp + 0x48]
mov al, 1
lea ecx, [esi + 0x31e]
mov edx, 2
test al, al
je 0x4b314e
cmp byte [ecx], 0
jne 0x4b314e
mov al, 1
jmp 0x4b3150
xor al, al
inc ecx
dec edx
jne 0x4b3141
test al, al
je 0x4b3174
mov al, byte [esi + 0x28d]
test al, al
jne 0x4b3174
mov eax, dword [esi + 0x208]
test ah, 0x20
je 0x4b3174
mov byte [esp + 0x13], 1
jmp 0x4b31b1
mov byte [esp + 0x13], 0
jmp 0x4b3183
mov al, byte [esp + 0x13]
test al, al
jne 0x4b31b1
fld dword [ebp + 0x2c]
mov ecx, dword [0x6f1c94]
fmul dword [0x672b00]
mov eax, dword [ecx + 0xc]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x6c]
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
mov edx, dword [esp + 0x6c]
sub eax, esi
cmp eax, edx
jge 0x4b31ba
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0xffffffff
jne case.0x4b3033.2
mov dword [ecx], 0xffffffff
jmp 0x4b3459
mov cx, word [ebp + 0x44]
test cx, cx
jle 0x4b3204
mov edx, dword [0x6f1c94]
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x20]
sub eax, dword [edx]
cdq
movsx ecx, cx
idiv ecx
mov ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x14]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
idiv dword [ecx + 0x34]
mov ebx, edx
jmp 0x4b3206
xor ebx, ebx
test byte [ebp + 0x48], 1
je 0x4b3221
mov edx, dword [esp + 0x20]
mov edi, dword [edx]
cmp edi, 0xffffffff
je 0x4b3221
lea esi, [ebp + 0x24]
call fcn.004aba50
jmp 0x4b3224
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x30]
mov eax, dword [0x87b7b4]
and edx, 0xffff
shl edx, 5
mov edi, dword [edx + eax + 0x14]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b325a
movsx ecx, bx
mov edx, eax
mov eax, dword [edx + 0x38]
shl ecx, 5
movsx esi, word [ecx + eax]
jmp 0x4b325e
movsx esi, word [ebp + 0x46]
mov edx, dword [edi + 0x64]
lea esi, [esi + esi*2]
shl esi, 4
add esi, edx
push 1
push 0
mov eax, esi
call fcn.00444670
add esp, 8
test eax, eax
je 0x4b3459
test byte [ebp + 0x48], 0x10
je 0x4b3413
cmp word [edi], 4
fld dword [0x672afc]
mov ecx, dword [esp + 0x14]
sete al
test ecx, ecx
mov dword [esp + 0x60], 0x3f800000
je 0x4b32d3
mov ecx, dword [ecx + 0x38]
movsx edx, bx
shl edx, 5
lea edx, [edx + ecx + 8]
mov ecx, dword [edx]
mov dword [esp + 0x30], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jmp 0x4b336d
test al, al
fstp st(0)
mov dword [esp + 0x30], 0
je 0x4b32eb
movsx ecx, word [esi + 4]
mov dword [esp + 0x14], ecx
jmp 0x4b32f3
mov dword [esp + 0x14], 1
test al, al
fild dword [esp + 0x14]
mov dword [esp + 0x38], 0
fstp dword [esp + 0x34]
je 0x4b3311
movsx edx, word [esi + 6]
mov dword [esp + 0x14], edx
jmp 0x4b3319
mov dword [esp + 0x14], 1
test al, al
fild dword [esp + 0x14]
fstp dword [esp + 0x3c]
je 0x4b332d
fld qword [0x672b30]
jmp 0x4b3345
movsx ecx, word [esi + 4]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fdivr dword [0x672afc]
fmul qword [0x673240]
test al, al
fstp dword [esp + 0x60]
je 0x4b3355
fld qword [0x672b30]
jmp 0x4b336d
movsx edx, word [esi + 6]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fdivr dword [0x672afc]
fmul qword [0x673240]
fld dword [0x672afc]
movsx ecx, word [esi + 4]
fdiv dword [esp + 0x2c]
movsx edx, word [0x7c2ce2]
mov dword [esp + 0x18], ecx
movsx ecx, word [0x7c2ce6]
sub ecx, edx
movsx edx, word [esi + 6]
mov bl, al
lea eax, [esp + 0x30]
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
movsx ecx, word [0x7c2ce0]
mov dword [esp + 0x18], edx
movsx edx, word [0x7c2ce4]
fmul st(2)
sub edx, ecx
fsubp st(1)
fmul dword [esp + 0x60]
fmul dword [0x672c2c]
fstp dword [esp + 0x14]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmul st(2)
fsubp st(1)
fmulp st(2)
fxch st(1)
fmul dword [0x672c2c]
fstp st(1)
fld dword [esp + 0x30]
fsub dword [esp + 0x14]
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fsub st(1)
fstp dword [esp + 0x38]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
jmp 0x4b3433
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b342a
mov edx, dword [eax + 0x38]
movsx ecx, bx
shl ecx, 5
lea eax, [ecx + edx + 8]
jmp 0x4b342c
xor eax, eax
cmp word [edi], 4
sete bl
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push 0
push ecx
lea edx, [esp + 0x80]
push edx
push esi
mov edx, ebp
push 0
call fcn.004acba0
add esp, 0x1c
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x34]
inc eax
mov dword [esp + 0x58], eax
movsx eax, ax
cmp eax, edx
jl 0x4b2f82
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ecx, dword [edx + 0x84]
inc eax
mov dword [esp + 0x50], eax
movsx eax, ax
cmp eax, ecx
jl 0x4b2f10
mov eax, dword [esp + 0x44]
inc eax
cmp ax, word [esp + 0x40]
mov dword [esp + 0x44], eax
jl 0x4b2e94
pop ebx
pop edi
pop ebp
pop esi
add esp, 0xc4
ret