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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x65e27e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [esi + 4], 7
jne 0x4d8759
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x21c]
push eax
call fcn.004d1740
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
push esi
lea ecx, [esp + 0x194]
mov dword [esp + 0x268], 0
call fcn.004d6700
lea ecx, [esp + 0x16c]
mov byte [esp + 0x258], 1
call fcn.004ced70
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0x21c]
mov dword [esp + 0x180], ecx
push 0xd
lea ecx, [esp + 0x170]
mov byte [esp + 0x25c], 2
mov dword [esp + 0x180], edx
call fcn.004ced90
mov ecx, dword [esp + 0x178]
mov eax, 0x4040404
mov ebx, dword [ebp + 8]
mov dword [ecx], eax
neg ebx
mov dword [ecx + 4], eax
sbb ebx, ebx
mov dword [ecx + 8], eax
and ebx, 4
add ebx, 0xc
mov byte [ecx + 0xc], al
mov edx, dword [esp + 0x178]
mov dword [esp + 0x18], ebx
mov byte [edx], 6
mov eax, dword [esp + 0x210]
cmp eax, dword [esp + 0x214]
jae 0x4d871a
lea ecx, [esp + 0x184]
call fcn.004d6900
mov edi, eax
xor eax, eax
cmp edi, eax
mov dword [esp + 0x10], eax
je 0x4d823f
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 2
lea esi, [edi + edi*2]
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 4
mov eax, esi
xor edx, edx
mov ebx, 0xc
add ecx, 8
div ebx
inc esi
mov eax, dword [esp + edx*8 + 0x28]
mov dword [ecx - 8], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + edx*8 + 0x2c]
dec eax
mov dword [ecx - 4], edx
mov dword [esp + 0x14], eax
jne 0x4d81b8
lea eax, [edi + edi*2]
inc edi
and edi, 3
mov ebx, dword [esp + 0x18]
lea ecx, [esp + eax*4 + 0x138]
mov edx, dword [esp + eax*4 + 0x138]
mov dword [esp + 0x138], edx
lea edx, [edi + edi*2]
mov eax, dword [ecx + 4]
mov dword [esp + 0x13c], eax
lea eax, [esp + edx*4 + 0x138]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x140], ecx
mov ecx, dword [eax]
mov dword [esp + 0x144], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x148], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
jge 0x4d826e
lea esi, [esp + eax*8 + 0x28]
sub ebx, eax
lea edi, [esi + 4]
lea ecx, [esp + 0x184]
push edi
push esi
call fcn.004d6920
mov ecx, dword [ebp + 0x10]
push edi
push esi
call fcn.004aabd0
add esi, 8
dec ebx
jne 0x4d8249
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ebx
lea edx, [esp + 0xac]
push ecx
push edx
call fcn.004ab7d0
fld dword [esp + 0xb8]
fcomp dword [0x670244]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x4d86d9
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fcomp dword [esp + 0xa8]
fnstsw ax
test ah, 0x41
jne 0x4d86d9
fld dword [esp + 0xb4]
fcomp dword [0x670244]
fnstsw ax
test ah, 0x41
jne 0x4d86d9
mov ecx, dword [ecx + 8]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fcomp dword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x4d86d9
mov eax, dword [esp + 0x10]
cmp eax, 4
jge 0x4d8361
lea edx, [eax + eax*2]
mov edi, 4
sub edi, eax
lea esi, [esp + edx*4 + 0x13c]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x190]
call fcn.004d6a30
fld dword [esp + 0x1c]
fmul dword [0x680e94]
call fcn.0046664c
fld dword [esp + 0x24]
fmul dword [0x680e94]
mov dword [esi - 4], eax
call fcn.0046664c
fld dword [esp + 0x20]
fmul dword [0x680e94]
mov dword [esi], eax
call fcn.0046664c
mov dword [esi + 4], eax
add esi, 0xc
dec edi
jne 0x4d830b
fld dword [esp + 0x80]
fmul dword [0x66ecec]
fld dword [esp + 0x78]
fmul dword [0x66ecec]
fld st(1)
fsub dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0xc4], eax
fsub st(1)
mov dword [esp + 0xd4], ecx
mov dword [esp + 0x104], edx
fadd dword [esp + 0x70]
fstp dword [esp + 0xb8]
fld dword [esp + 0x28]
fmul dword [0x66ecec]
fstp dword [esp + 0x14]
fld dword [esp + 0x80]
fmul dword [0x686848]
fsubr dword [esp + 0x14]
fadd st(1)
fstp dword [esp + 0xbc]
fstp st(0)
fsub dword [esp + 0x14]
fstp dword [esp + 0xc0]
fld dword [esp + 0x84]
fmul dword [0x66ecec]
fld dword [esp + 0x7c]
fmul dword [0x66ecec]
fld st(1)
fsub dword [esp + 0x2c]
fsub st(1)
fadd dword [esp + 0x74]
fstp dword [esp + 0xc8]
fld dword [esp + 0x2c]
fmul dword [0x66ecec]
fstp dword [esp + 0x10]
fld dword [esp + 0x84]
fmul dword [0x686848]
fsubr dword [esp + 0x10]
fadd st(1)
fstp dword [esp + 0xcc]
fstp st(0)
fsub dword [esp + 0x10]
fstp dword [esp + 0xd0]
fld dword [esp + 0x48]
fmul dword [0x66ecec]
fld dword [esp + 0x50]
fmul dword [0x66ecec]
fld st(1)
fsub dword [esp + 0x40]
fsub st(1)
fadd dword [esp + 0x58]
fstp dword [esp + 0xf8]
fld dword [esp + 0x40]
fmul dword [0x66ecec]
fstp dword [esp + 0xc]
fld dword [esp + 0x48]
fmul dword [0x686848]
fsubr dword [esp + 0xc]
fadd st(1)
fstp dword [esp + 0xfc]
fstp st(0)
fsub dword [esp + 0xc]
fstp dword [esp + 0x100]
fld dword [esp + 0x4c]
fmul dword [0x66ecec]
fld dword [esp + 0x54]
fmul dword [0x66ecec]
fld st(1)
fsub dword [esp + 0x44]
fsub st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0x108]
fld dword [esp + 0x44]
fmul dword [0x66ecec]
fstp dword [esp + 0xc]
fld dword [esp + 0x4c]
fmul dword [0x686848]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x114], eax
fsubr dword [esp + 0xc]
mov eax, dword [esp + 0x70]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xf4], edx
mov dword [esp + 0x124], eax
fadd st(1)
fstp dword [esp + 0x10c]
fstp st(0)
fsub dword [esp + 0xc]
fstp dword [esp + 0x110]
fld dword [esp + 0x30]
fmul dword [0x66ecec]
fld dword [esp + 0x38]
fmul dword [0x66ecec]
fld st(1)
fsub dword [esp + 0x28]
fsub st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0xd8]
fld dword [esp + 0x30]
fmul dword [0x686848]
fsubr dword [esp + 0x14]
fadd st(1)
fstp dword [esp + 0xdc]
fstp st(0)
fsub dword [esp + 0x14]
fstp dword [esp + 0xe0]
fld dword [esp + 0x34]
fmul dword [0x66ecec]
fld dword [esp + 0x3c]
fmul dword [0x66ecec]
fld st(1)
fsub dword [esp + 0x2c]
fsub st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0xe8]
fld dword [esp + 0x34]
fmul dword [0x686848]
fsubr dword [esp + 0x10]
fadd st(1)
fstp dword [esp + 0xec]
fstp st(0)
fsub dword [esp + 0x10]
fstp dword [esp + 0xf0]
fld dword [esp + 0x68]
fmul dword [0x66ecec]
fld dword [esp + 0x60]
fmul dword [0x66ecec]
fld st(1)
fsub dword [esp + 0x70]
fsub st(1)
fadd dword [esp + 0x58]
fstp dword [esp + 0x118]
fld dword [esp + 0x70]
fmul dword [0x66ecec]
fstp dword [esp + 0xc]
fld dword [esp + 0x68]
fmul dword [0x686848]
fsubr dword [esp + 0xc]
fadd st(1)
fstp dword [esp + 0x11c]
fstp st(0)
fsub dword [esp + 0xc]
fstp dword [esp + 0x120]
fld dword [esp + 0x6c]
fmul dword [0x66ecec]
fld dword [esp + 0x64]
fmul dword [0x66ecec]
fld st(1)
fsub dword [esp + 0x74]
fsub st(1)
fadd dword [esp + 0x5c]
mov ecx, dword [esp + 0x74]
sub esp, 0x20
mov dword [esp + 0x154], ecx
mov ecx, 8
lea esi, [esp + 0x138]
mov edi, esp
fstp dword [esp + 0x148]
fld dword [esp + 0x94]
fmul dword [0x66ecec]
sub esp, 0x20
fstp dword [esp + 0x4c]
fld dword [esp + 0xac]
fmul dword [0x686848]
fsubr dword [esp + 0x4c]
fadd st(1)
fstp dword [esp + 0x16c]
fstp st(0)
fsub dword [esp + 0x4c]
fstp dword [esp + 0x170]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x118]
mov edi, esp
sub esp, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x158]
mov edi, esp
sub esp, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x138]
mov edi, esp
push 0
rep movsd dword es:[edi], dword [esi]
push 0
push 1
push 1
lea ecx, [esp + 0x1c8]
call fcn.004d8770
jmp 0x4d8704
mov ecx, dword [esp + 0x10]
mov edx, 4
sub edx, ecx
mov eax, dword [esp + 0x210]
imul edx, dword [esp + 0x194]
imul edx, dword [esp + 0x19c]
add eax, edx
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x210]
mov ecx, dword [esp + 0x214]
cmp eax, ecx
jb 0x4d817d
lea ecx, [esp + 0x16c]
mov byte [esp + 0x258], 1
call fcn.004ced80
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x258], 0
call fcn.00498560
lea ecx, [esp + 0x21c]
mov dword [esp + 0x258], 0xffffffff
call fcn.004d18b0
mov ecx, dword [esp + 0x250]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret