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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push esi
push edi
mov esi, 0x6ac790
push edx
push esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.0062125a
add esp, 8
jmp 0x499370
mov esi, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
jmp 0x499370
push 0x25
push esi
call fcn.006211f8
xor edi, edi
add esp, 8
cmp eax, edi
je 0x4996e2
mov word [eax], di
add eax, 2
mov dword [esp + 0x14], eax
xor eax, eax
mov ax, word [esp + 0xe]
sub ax, word [ebx + 2]
xor ecx, ecx
cmp ax, di
setl cl
mov word [0x6dde10], di
push esi
lea esi, [esp + 0x10]
lea edi, [esp + 0x5c]
dec ecx
and eax, ecx
mov word [0x6dde0e], ax
call fcn.00551cb0
mov eax, dword [esp + 0x20]
mov edi, dword [ebp + 8]
mov dx, word [edi + 2]
add word [esp + 0x12], 0xfffd
push eax
push 0
push 0
xor eax, eax
lea ecx, [esp + 0x68]
mov word [esp + 0x6a], dx
call fcn.005106b0
mov cx, word [esp + 0x1c]
mov ebx, dword [esp + 0x24]
add esp, 0x10
mov word [edi], cx
mov dword [esp + 0x1c], ebx
call fcn.00499180
mov esi, eax
cmp si, 0xffff
jne 0x499473
mov ebx, dword [ebp + 8]
xor eax, eax
mov ax, word [esp + 0xe]
sub ax, word [edi + 2]
xor edx, edx
test ax, ax
setl dl
push 0x664548
lea esi, [esp + 0x10]
lea edi, [esp + 0x64]
mov word [0x6dde10], 0
dec edx
and eax, edx
mov word [0x6dde0e], ax
call fcn.00551cb0
add word [esp + 0x12], 0xfffd
mov esi, ebx
mov ax, word [esi + 2]
push 0x664548
mov word [esp + 0x6a], ax
push 0
push 0
xor eax, eax
mov ecx, edi
call fcn.005106b0
mov cx, word [esp + 0x1c]
add esp, 0x10
mov word [esi], cx
jmp 0x4996c1
movsx eax, si
mov edx, dword [eax*4 + 0x68c5d8]
push edx
mov dword [esp + 0x18], eax
call fcn.0062121a
add esp, 4
cmp si, 0x11
lea eax, [ebx + eax*2]
mov dword [esp + 0x1c], eax
jle case.default.0x499539
cmp si, 0x1f
jg 0x4996c1
cmp si, 0x1c
jg 0x499525
mov edx, dword [esp + 0x14]
movsx ax, byte [edx + 0x68c666]
lea ecx, [esp + 0x6c]
push ecx
call fcn.0048a370
add esp, 4
test al, al
je 0x49950d
lea ecx, [esp + 0x78]
lea eax, [esp + 0x6c]
call fcn.0048ad70
push 0x664544
lea eax, [esp + 0x10]
mov ecx, edi
call fcn.00499280
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x14]
mov ecx, edi
call fcn.00499280
push 0x664544
lea eax, [esp + 0x18]
mov ecx, edi
call fcn.00499280
add esp, 0xc
jmp 0x4996c1
push 0x66453c
lea eax, [esp + 0x10]
mov ecx, edi
call fcn.00499280
add esp, 4
jmp 0x4996c1
mov eax, dword [esp + 0x14]
movsx si, byte [eax + 0x68c666]
add eax, 0xffffffe4
cmp eax, 3
ja case.default.0x499539
jmp dword [eax*4 + 0x49970c]
mov esi, 0xc
jmp 0x499566
mov esi, 0xd
jmp 0x499566
mov esi, 0x10
jmp 0x499566
mov esi, 0x11
jmp 0x499566
cmp si, 0xffff
je 0x4996c1
mov ecx, dword [0x70b25c]
mov eax, dword [ecx + 0xc8]
movsx ebx, si
mov esi, ebx
shl esi, 4
mov dl, byte [esi + eax + 0xd]
mov ecx, dword [esi + eax + 8]
add esi, eax
mov ax, word [esi + 2]
mov word [esp + 0x30], ax
lea eax, [esp + 0x20]
mov byte [esp + 0x1b], dl
call fcn.0043f5b0
mov dl, byte [esi + 0xd]
and dl, 0xfd
mov byte [esi + 0xd], dl
mov cl, byte [ebx + 0x68c5c4]
test cl, cl
mov al, dl
je 0x4995ba
and al, 0xfb
mov byte [esi + 0xd], al
mov word [esi + 2], 0xfffb
mov ebx, dword [0x6dddd8]
mov ecx, dword [0x6ddddc]
mov edx, dword [0x6ddde0]
mov eax, dword [0x6ddde4]
mov dword [esp + 0x44], ebx
fld dword [esp + 0x44]
fmul dword [0x66c4a8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
call fcn.006343a4
shl eax, 0x18
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x499605
mov al, byte [ebp + 0xc]
test al, al
je 0x499626
mov ecx, dword [0x6ddddc]
mov edx, dword [0x6ddde0]
mov eax, dword [0x6ddde4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
fld dword [esp + 0x24]
lea ecx, [esp + 0x20]
fmul dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], 0x437f0000
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul dword [esp + 0x44]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fmul dword [esp + 0x44]
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
fld dword [edx]
fld dword [edx + 4]
fld dword [edx + 8]
fld dword [edx + 0xc]
fld dword [esp + 0x34]
fmul st(4), st(0)
fmul st(3), st(0)
fmul st(2), st(0)
fmulp st(1)
fistp dword [esp + 0x3c]
fistp dword [esp + 0x40]
fistp dword [esp + 0x54]
fistp dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
shl ebx, 8
shl ecx, 0x10
shl eax, 0x18
or edx, ebx
or edx, ecx
or edx, eax
mov dword [esp + 0x68], edx
call fcn.004991d0
inc word [edi + 2]
mov dl, byte [esp + 0x1b]
mov ax, word [esp + 0x30]
mov byte [esi + 0xd], dl
mov word [esi + 2], ax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x499364
xor eax, eax
mov word [0x6dde0e], ax
mov word [0x6dde10], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, edi
je 0x4996f5
push esi
lea eax, [esp + 0x10]
mov ecx, ebx
call fcn.00499280
add esp, 4
mov word [0x6dde0e], di
mov word [0x6dde10], di
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret