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

Disassembly:
sub esp, 0x190
push ebx
push ebp
mov ebp, dword [esp + 0x1a0]
push esi
push edi
mov byte [esp + 0x13], 1
mov al, byte [ebp + 0xcf]
mov dword [esp + 0x58], 0
test al, al
mov dword [esp + 0x20], 0x4b189680
je 0x4e7839
test byte [ebp], 4
jne 0x4e7839
mov esi, dword [esp + 0x1a4]
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov edx, esi
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 8]
mov eax, dword [edx]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x1ac]
mov ecx, dword [edx + 4]
test al, al
mov edx, dword [edx + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jne 0x4e73b0
fld dword [esp + 0x34]
fadd dword [0x52e3c0]
fstp dword [esp + 0x34]
fld dword [esp + 0x28]
fadd dword [0x52e3c0]
fstp dword [esp + 0x28]
jmp 0x4e7404
fld dword [esp + 0x3c]
fsub dword [0x52e3c0]
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fsub dword [0x52e3c0]
fstp dword [esp + 0x1c]
fld dword [esp + 0x38]
fsub dword [0x52e3c0]
fstp dword [esp + 0x38]
fld dword [esp + 0x18]
fsub dword [0x52e3c0]
fstp dword [esp + 0x18]
fld dword [esp + 0x34]
fsub dword [0x52e3c0]
fstp dword [esp + 0x34]
fld dword [esp + 0x14]
fsub dword [0x52e3c0]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp dword [ebp + 0x48]
mov byte [esp + 0x12], 0
fnstsw ax
test ah, 0x41
je 0x4e741c
mov byte [esp + 0x12], 1
fld dword [esp + 0x18]
fcomp dword [ebp + 0x4c]
fnstsw ax
test ah, 0x41
je 0x4e742f
or byte [esp + 0x12], 2
fld dword [esp + 0x1c]
fcomp dword [ebp + 0x50]
fnstsw ax
test ah, 0x41
je 0x4e7442
or byte [esp + 0x12], 4
fld dword [esp + 0x28]
fcomp dword [ebp + 0x54]
fnstsw ax
test ah, 1
jne 0x4e7455
or byte [esp + 0x12], 8
fld dword [esp + 0x2c]
fcomp dword [ebp + 0x58]
fnstsw ax
test ah, 1
jne 0x4e7468
or byte [esp + 0x12], 0x10
fld dword [esp + 0x30]
fcomp dword [ebp + 0x5c]
fnstsw ax
test ah, 1
jne 0x4e747b
or byte [esp + 0x12], 0x20
mov ax, word [ebp + 0x60]
mov ecx, dword [ebp + 0x74]
mov edx, dword [ebp + 0x6c]
mov edi, dword [ebp + 0x68]
movsx eax, ax
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x64]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x70]
test eax, eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x40], ecx
jle 0x4e77fe
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
mov bl, byte [esp + 0x12]
mov al, byte [eax]
mov cl, al
and cl, bl
cmp cl, al
jne 0x4e77bb
mov ecx, dword [esp + 0x44]
fld dword [ecx]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x4e77bb
fld dword [ecx + 4]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
je 0x4e77bb
fld dword [ecx + 8]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
je 0x4e77bb
fld dword [edx]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x4e77bb
fld dword [edx + 4]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
jne 0x4e77bb
fld dword [edx + 8]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x4e77bb
mov eax, dword [esp + 0x40]
cmp word [edi], 0
mov dword [esp + 0x70], 0
mov ecx, dword [eax]
jle 0x4e77bb
jmp 0x4e7553
mov ecx, dword [esp + 0x78]
movsx eax, word [ecx]
add ecx, 2
lea edi, [eax*8]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebp + 0x10]
sub edi, eax
shl edi, 3
add ecx, edi
test byte [ecx + 1], 8
jne 0x4e779f
fld dword [esp + 0x2c]
fcomp dword [ecx + 0x24]
fnstsw ax
test ah, 1
jne 0x4e779f
fld dword [ecx + 0x30]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
jne 0x4e779f
fld dword [esp + 0x28]
fcomp dword [ecx + 0x20]
fnstsw ax
test ah, 1
jne 0x4e779f
fld dword [ecx + 0x2c]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x4e779f
fld dword [esp + 0x30]
fcomp dword [ecx + 0x28]
fnstsw ax
test ah, 1
jne 0x4e779f
fld dword [ecx + 0x34]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x4e779f
mov dl, byte [ecx + 2]
xor bl, bl
xor eax, eax
test dl, dl
jbe 0x4e7623
mov ebp, dword [ebp + 0x18]
mov esi, dword [ecx + 4]
movsx edx, ax
inc eax
movsx esi, word [esi + edx*2]
lea esi, [esi + esi*2]
lea esi, [ebp + esi*4]
mov dword [esp + edx*4 + 0xa0], esi
movzx dx, byte [ecx + 2]
cmp ax, dx
jl 0x4e75f2
mov ebp, dword [esp + 0x1a8]
mov esi, dword [esp + 0x1a4]
lea eax, [ecx + 0xc]
push 0
mov edx, dword [eax]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
xor edx, edx
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
mov dl, byte [ecx + 2]
lea eax, [esp + 0xa4]
push edx
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
lea eax, [esp + 0x90]
push esi
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0xb0]
push ecx
lea eax, [esp + 0xa8]
push edx
push eax
call fcn.004e6360
add esp, 0x28
test eax, eax
jne 0x4e7765
fld dword [esp + 0x4c]
fmul dword [0x51d854]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fmul dword [0x51d854]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x4c], ecx
xor ecx, ecx
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fmul dword [0x51d854]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x50], edx
mov edx, dword [ebp + 0x10]
add edx, edi
fstp dword [esp + 0x64]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x54], eax
mov al, byte [edx + 2]
test al, al
jbe 0x4e771f
mov ebx, dword [ebp + 0x18]
mov edi, dword [edx + 4]
and eax, 0xff
movsx esi, cx
sub eax, esi
inc ecx
movsx edi, word [edi + esi*2]
lea edi, [edi + edi*2]
lea edi, [ebx + edi*4]
mov dword [esp + eax*4 + 0x9c], edi
mov al, byte [edx + 2]
movzx si, al
cmp cx, si
jl 0x4e76ed
mov esi, dword [esp + 0x1a4]
xor eax, eax
push 0
mov al, byte [edx + 2]
lea ecx, [esp + 0xa4]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x90]
push esi
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0xb0]
push edx
lea ecx, [esp + 0xa8]
push eax
push ecx
call fcn.004e6360
add esp, 0x28
mov bl, 1
test eax, eax
je 0x4e779f
fld dword [esp + 0x24]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
je 0x4e7778
test bl, bl
je 0x4e778b
fld dword [esp + 0x24]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 1
je 0x4e779f
test bl, bl
je 0x4e779f
mov edx, dword [esp + 0x24]
neg bl
sbb ebx, ebx
mov dword [esp + 0x20], edx
and ebx, 5
inc ebx
mov dword [esp + 0x58], ebx
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
inc eax
movsx ecx, word [edi]
cmp eax, ecx
mov dword [esp + 0x70], eax
jl 0x4e754f
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x74]
add edi, 2
inc ecx
add edx, 0xc
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x40]
add ebx, 0xc
add ecx, 4
dec eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x74], eax
jne 0x4e74b1
cmp dword [esp + 0x58], 1
je 0x4e7846
mov al, byte [esp + 0x1ac]
mov byte [esp + 0x13], 0
test al, al
jne 0x4e7846
mov al, byte [ebp + 0xcf]
mov byte [esp + 0x1ac], 1
test al, al
mov byte [esp + 0x13], 1
mov dword [esp + 0x58], 0
mov dword [esp + 0x20], 0x4b189680
jne 0x4e7334
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x190
ret
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret