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

Disassembly:
sub esp, 0x158
mov eax, dword [0x4e7fde0]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1ec]
test eax, eax
push edi
mov edi, dword [esp + 0x16c]
mov dword [esp + 0x40], esi
mov dword [esp + 0x50], edi
je 0x4d7d065
cmp dword [esi + 0x20], 0
je 0x4d7d065
test edi, edi
je 0x4d7d065
movzx eax, word [eax + 0x1c]
push eax
call fcn.04c99fd0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4d7d065
mov eax, dword [ebp + 0x7b8]
test eax, eax
je 0x4d7ccae
cmp eax, 1
je 0x4d7ccae
cmp eax, 2
jne 0x4d7d065
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x4d7ca28
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x50]
push eax
mov ecx, edi
call fcn.04d7fc50
mov ebx, eax
test ebx, ebx
je 0x4d7cc95
mov ecx, ebx
call fcn.04d7c090
test al, al
je 0x4d7cc95
mov ecx, dword [0x4e83f60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x98]
lea edx, [esp + 0xac]
push edx
mov edx, dword [esi + 0x20]
push edx
call eax
mov ecx, dword [0x4e83f60]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1e4]
lea eax, [esp + 0xf4]
push eax
mov eax, dword [ebx + 0x20]
push eax
call edx
fld dword [ebp + 0x9cc]
fadd qword [0x4e55fd8]
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0xb0]
fstp qword [esp + 0x24]
call fcn.04ca61a0
fld qword [esp + 0x20]
fmul st(0), st(0)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 1
jne 0x4d7cc95
lea ecx, [esp + 0x64]
lea edi, [esi + 0x264]
push ecx
mov ecx, edi
call fcn.04b751e0
lea ecx, [esp + 0x64]
call fcn.04b865f0
lea ecx, [esp + 0xb8]
call fcn.04b828e0
lea ecx, [esp + 0x70]
call fcn.04b82920
fld dword [esp + 0xac]
fst dword [esp + 0xb8]
mov ecx, dword [0x4e83f60]
fld dword [esp + 0xb0]
lea edx, [esp + 0x70]
fst dword [esp + 0xbc]
push edx
fld dword [esp + 0xb8]
lea eax, [esp + 0xbc]
fst dword [esp + 0xc4]
push eax
fld dword [ebp + 0x798]
xor esi, esi
fmul qword [0x4e2d458]
fstp dword [esp + 0x28]
fld dword [esp + 0x6c]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x70]
fmul st(1)
fstp dword [esp + 0x50]
fmul dword [esp + 0x74]
fstp dword [esp + 0x54]
fld dword [esp + 0x4c]
faddp st(3)
fxch st(2)
fstp dword [esp + 0xa8]
fadd dword [esp + 0x50]
fstp dword [esp + 0xac]
fadd dword [esp + 0x54]
fstp dword [esp + 0xb0]
fld dword [esp + 0xa8]
fstp dword [esp + 0xcc]
fld dword [esp + 0xac]
fstp dword [esp + 0xd0]
fld dword [esp + 0xb0]
fstp dword [esp + 0xd4]
mov edx, dword [ecx + 0x64]
call edx
add esp, 8
test al, al
je 0x4d7cc95
cmp esi, 3
jge 0x4d7cc95
mov ecx, dword [0x4e7ffd0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x90]
push 0
push edx
add esi, 1
call eax
test byte [esp + 0x38], 1
jne 0x4d7cc8e
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call fcn.04b751e0
fld dword [eax]
fld qword [0x4e0e230]
mov ecx, dword [0x4e83f60]
fmul st(1), st(0)
lea edx, [esp + 0x70]
fxch st(1)
push edx
fstp dword [esp + 0x30]
fld dword [eax + 4]
fmul st(1)
fstp dword [esp + 0x34]
fmul dword [eax + 8]
lea eax, [esp + 0xbc]
push eax
fstp dword [esp + 0x3c]
fld dword [esp + 0x78]
fadd dword [esp + 0x34]
fstp dword [esp + 0x1c]
fld dword [esp + 0x7c]
fadd dword [esp + 0x38]
fstp dword [esp + 0x20]
fld dword [esp + 0x80]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fstp dword [esp + 0xc0]
fld dword [esp + 0x20]
fstp dword [esp + 0xc4]
fld dword [esp + 0x24]
fstp dword [esp + 0xc8]
mov edx, dword [ecx + 0x64]
call edx
add esp, 8
test al, al
jne 0x4d7cbc2
jmp 0x4d7cc95
mov ecx, ebx
call fcn.04d7c170
mov eax, dword [esp + 0x3c]
add eax, 1
cmp eax, 0x10
mov dword [esp + 0x3c], eax
jl 0x4d7ca20
jmp 0x4d7d065
mov ecx, dword [0x4e83f60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x98]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 0x20]
push edx
call eax
fld dword [esp + 0x24]
fadd qword [0x4e55fd8]
lea ecx, [esp + 0x54]
lea ebx, [esi + 0x264]
push ecx
mov ecx, ebx
fstp dword [esp + 0x28]
call fcn.04b751e0
fld dword [eax]
fldz
lea edx, [esp + 0x54]
fmul st(1), st(0)
push edx
fxch st(1)
mov ecx, ebx
fstp dword [esp + 0x18]
fld dword [eax + 4]
fmul st(1)
fstp dword [esp + 0x1c]
fmul dword [eax + 8]
fstp dword [esp + 0x20]
fld dword [esp + 0x18]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fadd dword [esp + 0x20]
fstp dword [esp + 0x2c]
call fcn.04b75190
fld dword [eax]
mov ecx, ebx
fld qword [0x4e0d150]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [eax + 4]
fmul st(1)
fstp dword [esp + 0x18]
fmul dword [eax + 8]
lea eax, [esp + 0x54]
push eax
fstp dword [esp + 0x20]
fld dword [esp + 0x18]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
call fcn.04b75140
fld dword [eax]
fld qword [0x4e0d148]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [eax + 4]
fmul st(1)
fstp dword [esp + 0x18]
fmul dword [eax + 8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x18]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
call fcn.04b751e0
lea ecx, [esp + 0x44]
call fcn.04b865f0
lea ecx, [esp + 0xb8]
call fcn.04b828e0
lea ecx, [esp + 0x70]
call fcn.04b82920
fld dword [esp + 0x20]
fst dword [esp + 0xb8]
mov dword [esp + 0xdc], 3
fld dword [esp + 0x24]
mov byte [esp + 0x13], 0
fst dword [esp + 0xbc]
fld dword [esp + 0x28]
fst dword [esp + 0xc0]
fld dword [ebp + 0x798]
mov ebp, dword [0x4e0c3b8]
fstp dword [esp + 0x38]
fld dword [esp + 0x44]
fld dword [esp + 0x38]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x18]
fmul dword [esp + 0x4c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x2c]
fadd dword [esp + 0x18]
fstp dword [esp + 0x30]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x34]
fld dword [esp + 0x2c]
fstp dword [esp + 0xc4]
fld dword [esp + 0x30]
fstp dword [esp + 0xc8]
fld dword [esp + 0x34]
fstp dword [esp + 0xcc]
mov ecx, dword [0x4e83f60]
lea edx, [esp + 0x70]
push edx
mov edx, dword [ecx + 0x64]
lea eax, [esp + 0xbc]
push eax
call edx
add esp, 8
test al, al
je 0x4d7d065
mov eax, dword [esp + 0x8c]
cmp eax, dword [esi + 0x20]
je 0x4d7d23c
push 0x64
lea ecx, [esp + 0x104]
push 0
push ecx
call fcn.04df7dbc
fldz
fst dword [esp + 0x60]
add esp, 0xc
fst dword [esp + 0x58]
lea edx, [esp + 0x64]
fstp dword [esp + 0x5c]
push edx
fld1
mov ecx, ebx
fstp dword [esp + 0x64]
call fcn.04b75190
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x74]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x84]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.04d7c840
mov ecx, dword [0x4e7ffd0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x90]
push 0
push eax
call edx
test dword [esp + 0x3c], 0x2000
je 0x4d7d1cb
mov ecx, dword [0x4e7ffd0]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x90]
push edx
call eax
mov ecx, dword [0x4e7ffd4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x8c]
mov edx, dword [edx + 4]
push eax
call edx
cmp eax, 0x56
je 0x4d7d080
cmp dword [esp + 0x38], 2
je 0x4d7d080
mov eax, dword [esp + 0x3c]
test al, 1
jne 0x4d7d020
test eax, 0x1000000
jne 0x4d7d020
mov eax, dword [esp + 0x8c]
push eax
mov ecx, edi
call fcn.04d800c0
mov esi, eax
test esi, esi
je 0x4d7d1cb
cmp byte [esi + 0x2fd], 0
je 0x4d7d1cb
mov ecx, dword [esp + 0x40]
cmp byte [ecx + 0x2fd], 0
jne 0x4d7d1cb
mov ecx, dword [0x4e83f6c]
push 0
push 0
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x7c]
push eax
push 0
push 0x4e36974
call fcn.04b8a120
mov ecx, esi
call fcn.04d7a510
jmp 0x4d7d1cb
mov ecx, dword [esp + 0x8c]
push ecx
mov ecx, edi
call fcn.04d800c0
mov esi, eax
test esi, esi
je 0x4d7d1cb
mov edx, dword [esp + 0x40]
mov al, byte [edx + 0x12]
cmp al, byte [esi + 0x12]
je 0x4d7d04f
cmp dword [esi + 0x30], 0
je 0x4d7d253
mov ecx, esi
call fcn.04d7c090
test al, al
je 0x4d7d1cb
mov ecx, esi
call fcn.04d7c170
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.04df7d7a
add esp, 0x158
ret 4
mov ecx, dword [esp + 0x98]
push ecx
call fcn.04c98b80
mov edi, eax
add esp, 4
test edi, edi
je 0x4d7d1cb
cmp dword [edi + 0x470], 0
jne 0x4d7d238
lea eax, [edi + 8]
lea edx, [esp + 0x100]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4d7d0b3
push 0
push 0
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x7c]
push eax
push 0
lea ecx, [esp + 0x114]
push ecx
mov ecx, dword [0x4e83f6c]
call fcn.04b8a120
call ebp
mov esi, eax
and esi, 0x80000001
jns 0x4d7d0f3
dec esi
or esi, 0xfffffffe
inc esi
push 0x64
lea edx, [esp + 0x104]
push 0
push edx
add esi, 1
call fcn.04df7dbc
push esi
lea eax, [edi + 0x288]
push eax
lea ecx, [esp + 0x114]
push 0x4e36e14
push ecx
nop
call 0x7c22775d
add esp, 0x1c
push 0
push 0
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x7c]
push eax
push 0
lea ecx, [esp + 0x114]
push ecx
mov ecx, dword [0x4e83f6c]
call fcn.04b8a120
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4d7d17e
mov edx, dword [0x4e83f60]
push eax
mov eax, dword [edx + 0x228]
call eax
add esp, 4
test eax, eax
je 0x4d7d17e
cmp dword [eax], 9
jne 0x4d7d17e
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0xb
jne 0x4d7d17e
mov ecx, eax
call fcn.04cabc60
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
push 0
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edx
push 0
mov dword [eax + 8], ecx
call ebp
cdq
mov ecx, 3
idiv ecx
mov ecx, dword [0x55cdb88]
shl edx, 5
lea edx, [edx + edi + 0x387]
push edx
call fcn.04cffcc0
cmp dword [edi + 0x46c], 0
je 0x4d7d065
fld dword [esp + 0x44]
mov esi, dword [esp + 0x40]
fld qword [0x4e0e230]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x18]
fmul dword [esp + 0x4c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fadd dword [esp + 0x70]
fstp dword [esp + 0x2c]
fld dword [esp + 0x74]
fadd dword [esp + 0x18]
fstp dword [esp + 0x30]
fld dword [esp + 0x78]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x34]
fld dword [esp + 0x2c]
fstp dword [esp + 0xb8]
fld dword [esp + 0x30]
fstp dword [esp + 0xbc]
fld dword [esp + 0x34]
fstp dword [esp + 0xc0]
mov edi, dword [esp + 0x50]
mov al, byte [esp + 0x13]
add al, 1
cmp al, 0xa
mov byte [esp + 0x13], al
jb 0x4d7ce93
jmp 0x4d7d065
push 0
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [0x4e83f6c]
push 0
push 0x4e36974
call fcn.04b8a120
mov ecx, esi
call fcn.04d7a510
jmp 0x4d7d065