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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5652cb
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 4], ebx
jne 0x4e149f
xor al, al
jmp 0x4e1eb9
fld qword [0xad5400]
call sub.msvcrt.dll__CIacos
fld dword [esp + 0x298]
fchs
fmulp st(1)
lea edi, [esp + 0x84]
mov ebp, 4
fmul qword [0xad5410]
fld st(0)
fcos
fstp dword [esp + 0x54]
fsin
fstp dword [esp + 0x50]
mov ecx, edi
call fcn.004fff20
add edi, 8
dec ebp
jne 0x4e14d5
push 0xbf000000
push 0xbf000000
lea ecx, [esp + 0x18]
call fcn.004fff30
mov ecx, dword [eax]
push 0xbf000000
mov dword [esp + 0x88], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x8c], edx
call fcn.004f06a0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0xad53f0]
fstp dword [esp]
call fcn.004fff30
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x90], edx
call fcn.004f0690
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
lea ecx, [esp + 0x74]
fsub dword [0xad53f0]
fstp dword [esp]
push 0xbf000000
call fcn.004fff30
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x98], edx
call fcn.004f0690
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsub dword [0xad53f0]
fstp dword [esp]
call fcn.004f06a0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0xad53f0]
fstp dword [esp]
call fcn.004fff30
mov ecx, dword [eax]
lea edi, [esp + 0x28]
mov dword [esp + 0x9c], ecx
mov ebp, 4
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], edx
mov ecx, edi
call fcn.004fff20
add edi, 8
dec ebp
jne 0x4e15e3
mov al, byte [esp + 0x2b0]
test al, al
je 0x4e1637
xor eax, eax
mov ecx, dword [esp + eax + 0x84]
mov edx, dword [esp + eax + 0x88]
mov dword [esp + eax + 0x28], ecx
mov dword [esp + eax + 0x2c], edx
add eax, 8
cmp eax, 0x20
jl 0x4e15fd
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x4e1845
fld dword [esp + 0x28]
jmp 0x4e1849
xor eax, eax
fld dword [esp + 0x54]
fmul dword [esp + eax + 0x84]
fld dword [esp + 0x50]
fmul dword [esp + eax + 0x88]
add eax, 8
cmp eax, 0x20
fsubp st(1)
fstp dword [esp + eax + 0x20]
fld dword [esp + 0x50]
fmul dword [esp + eax + 0x7c]
fld dword [esp + 0x54]
fmul dword [esp + eax + 0x80]
faddp st(1)
fstp dword [esp + eax + 0x24]
jl 0x4e1639
mov al, byte [esp + 0x2ac]
test al, al
je 0x4e161b
mov ecx, esi
call fcn.004f06a0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsubr dword [0xad53f0]
fstp dword [esp]
call fcn.004f0690
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0xad53f0]
fstp dword [esp]
call fcn.004fff30
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004fff50
lea ecx, [esp + 0x48]
call fcn.004fff70
fcomp qword [0xad5420]
fnstsw ax
test ah, 1
je 0x4e16fd
mov eax, dword [esp + 0x29c]
mov ecx, esi
push eax
call fcn.004e0830
jmp 0x4e1eb9
mov ecx, esi
call fcn.004f06a0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsub dword [0xad53f0]
fstp dword [esp]
call fcn.004f0690
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsubr dword [0xad53f0]
fstp dword [esp]
call fcn.004fff30
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004fff50
lea ecx, [esp + 0x48]
call fcn.004fff70
fcomp qword [0xad5420]
fnstsw ax
test ah, 1
je 0x4e1779
mov ecx, dword [esp + 0x29c]
push ecx
mov ecx, esi
call fcn.004e03a0
jmp 0x4e1eb9
mov ecx, esi
call fcn.004f0690
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsubr dword [0xad53f0]
fstp dword [esp]
call fcn.004f06a0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsubr dword [0xad53f0]
fstp dword [esp]
call fcn.004fff30
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004fff50
lea ecx, [esp + 0x48]
call fcn.004fff70
fcomp qword [0xad5420]
fnstsw ax
test ah, 1
je 0x4e17f5
mov edx, dword [esp + 0x29c]
mov ecx, esi
push edx
call fcn.004e1ee0
jmp 0x4e1eb9
sub esp, 8
lea eax, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004fff50
lea ecx, [esp + 0x48]
call fcn.004fff70
fcomp qword [0xad5420]
fnstsw ax
test ah, 1
je 0x4e161b
mov ecx, dword [esp + 0x29c]
cmp ecx, ebx
je 0x4e1eb7
push 1
push 1
push 1
push esi
call fcn.004d7930
jmp 0x4e1eb7
fld dword [esp + 0x30]
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x4e185e
fld dword [esp + 0x38]
jmp 0x4e1862
fld dword [esp + 0x40]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4e188e
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x4e1884
mov ecx, dword [esp + 0x28]
jmp 0x4e18ab
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
jmp 0x4e18af
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x4e18a7
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
jmp 0x4e18af
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4e18c4
fld dword [esp + 0x2c]
jmp 0x4e18c8
fld dword [esp + 0x34]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x4e18dd
fld dword [esp + 0x3c]
jmp 0x4e18e1
fld dword [esp + 0x44]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4e190d
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4e1903
mov edx, dword [esp + 0x2c]
jmp 0x4e192a
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jmp 0x4e192e
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x4e1926
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
jmp 0x4e192e
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x4e1943
fld dword [esp + 0x28]
jmp 0x4e1947
fld dword [esp + 0x30]
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x4e195c
fld dword [esp + 0x38]
jmp 0x4e1960
fld dword [esp + 0x40]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4e198c
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x4e1982
mov eax, dword [esp + 0x28]
jmp 0x4e19a9
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
jmp 0x4e19ad
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x4e19a5
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], edx
jmp 0x4e19ad
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x4e19c2
fld dword [esp + 0x2c]
jmp 0x4e19c6
fld dword [esp + 0x34]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x4e19db
fld dword [esp + 0x3c]
jmp 0x4e19df
fld dword [esp + 0x44]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4e1a0b
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x4e1a01
mov ecx, dword [esp + 0x2c]
jmp 0x4e1a28
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
jmp 0x4e1a2c
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x4e1a24
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jmp 0x4e1a2c
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
sub esp, 8
fadd dword [0xad53f0]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_floor]
call sub.msvcrt.dll__ftol
fld dword [esp + 0x28]
fsub dword [esp + 0x24]
mov ebp, eax
mov dword [esp + 0x64], ebp
fadd dword [0xad53f0]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_floor]
add esp, 8
call sub.msvcrt.dll__ftol
fild dword [esp + 0x5c]
fld dword [esp + 0x18]
fadd dword [esp + 0x24]
fld st(1)
fsub dword [0xad5418]
mov edi, eax
mov al, byte [esp + 0x2b0]
fsubp st(1)
mov dword [esp + 0x60], edi
test al, al
fmul dword [0xad53f0]
fstp dword [esp + 0x6c]
fild dword [esp + 0x60]
fstp dword [esp + 0x64]
fld dword [esp + 0x20]
fadd dword [esp + 0x1c]
fld dword [esp + 0x64]
fsub dword [0xad5418]
fsubp st(1)
fmul dword [0xad53f0]
fstp dword [esp + 0x48]
fmul dword [0xad53f0]
fstp dword [esp + 0x70]
fld dword [esp + 0x64]
fmul dword [0xad53f0]
fstp dword [esp + 0x10]
je 0x4e1b24
mov ecx, esi
call fcn.004f06a0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
fild qword [esp + 0x64]
mov ecx, esi
fmul dword [0xad53f0]
fsubr dword [esp + 0x6c]
fstp dword [esp + 0x6c]
call fcn.004f0690
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebx
fild qword [esp + 0x7c]
fmul dword [0xad53f0]
fsubr dword [esp + 0x48]
fstp dword [esp + 0x48]
push ebx
lea ecx, [esp + 0xa8]
call fcn.004d77e0
push esi
lea ecx, [esp + 0xa8]
mov dword [esp + 0x294], ebx
call fcn.004d7a70
mov ecx, esi
call fcn.004f06e0
push eax
mov ecx, esi
call fcn.004f06d0
and eax, 0xffff
lea ecx, [esp + 0xa8]
push eax
push edi
push ebp
call fcn.004d7ab0
push 0x100
mov ecx, esi
call fcn.004e6af0
push eax
lea ecx, [esp + 0xac]
call fcn.004e7590
mov ecx, esi
call fcn.004f61c0
test al, al
je 0x4e1b98
lea ecx, [esp + 0xa4]
call fcn.004f6260
mov eax, dword [esp + 0x2a8]
cmp eax, ebx
je 0x4e1bab
mov edx, dword [eax]
mov dword [esp + 0x58], edx
jmp 0x4e1bbe
mov al, 0xff
mov byte [esp + 0x5b], 0
mov byte [esp + 0x5a], al
mov byte [esp + 0x59], al
mov byte [esp + 0x58], al
mov eax, dword [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.004f04f0
test al, al
jne 0x4e1d3c
xor ebp, ebp
cmp edi, ebx
mov dword [esp + 0x48], ebx
jle 0x4e1e71
mov dword [esp + 0x4c], ebx
jmp 0x4e1beb
xor ebx, ebx
mov eax, dword [esp + 0x4c]
cdq
idiv edi
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
cmp eax, ebx
jne 0x4e1e71
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
push edx
push ebx
lea ecx, [esp + 0xac]
call fcn.004e79d0
mov ecx, esi
mov edi, eax
call fcn.004f61c0
test al, al
je 0x4e1c41
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0xa4]
push eax
push ebx
call fcn.004f64f0
mov ebp, eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jle 0x4e1d09
fld dword [esp + 0x20]
fmul dword [esp + 0x50]
mov ebx, eax
fstp dword [esp + 0x78]
fld dword [esp + 0x20]
fmul dword [esp + 0x54]
fstp dword [esp + 0x64]
fld dword [esp + 0x1c]
fmul dword [esp + 0x54]
mov al, byte [esp + 0x2b0]
test al, al
fadd dword [esp + 0x78]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [esp + 0x50]
fsubr dword [esp + 0x64]
fstp dword [esp + 0x24]
je 0x4e1caa
fld dword [esp + 0x18]
fadd dword [esp + 0x70]
fstp dword [esp + 0x18]
fld dword [esp + 0x24]
fadd dword [esp + 0x10]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x2a4]
mov eax, dword [esp + 0x2a0]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
mov ecx, esi
call fcn.004f0c60
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov cx, word [esp + 0x1a]
test ebp, ebp
je 0x4e1ceb
mov byte [ebp], ch
inc ebp
fld dword [esp + 0x1c]
fadd dword [0xad5418]
mov byte [edi], al
inc edi
mov byte [edi], ah
inc edi
fstp dword [esp + 0x1c]
mov byte [edi], cl
inc edi
dec ebx
jne 0x4e1c67
fld dword [esp + 0x20]
fadd dword [0xad5418]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x60]
inc eax
add edx, 0x64
cmp eax, edi
fstp dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jl 0x4e1be9
jmp 0x4e1e6f
test edi, edi
jle 0x4e1e6f
mov dword [esp + 0x4c], 0
jmp 0x4e1d52
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x4c]
cdq
idiv edi
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x4e1e6f
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
xor ebp, ebp
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x4e1e49
fld dword [esp + 0x20]
fmul dword [esp + 0x50]
fstp dword [esp + 0x78]
fld dword [esp + 0x20]
fmul dword [esp + 0x54]
fstp dword [esp + 0x64]
fld dword [esp + 0x1c]
fmul dword [esp + 0x54]
mov al, byte [esp + 0x2b0]
test al, al
fadd dword [esp + 0x78]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [esp + 0x50]
fsubr dword [esp + 0x64]
fstp dword [esp + 0x24]
je 0x4e1dde
fld dword [esp + 0x18]
fadd dword [esp + 0x70]
fstp dword [esp + 0x18]
fld dword [esp + 0x24]
fadd dword [esp + 0x10]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x2a4]
mov ecx, dword [esp + 0x2a0]
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, esi
call fcn.004f0c60
mov edi, dword [eax]
mov ecx, esi
call fcn.004f61c0
test al, al
je 0x4e1e1d
push 1
jmp 0x4e1e1f
push 0
push edi
push ebx
push ebp
lea ecx, [esp + 0xb4]
call fcn.004e70a0
fld dword [esp + 0x1c]
fadd dword [0xad5418]
mov eax, dword [esp + 0x5c]
inc ebp
cmp ebp, eax
fstp dword [esp + 0x1c]
jl 0x4e1d9b
fld dword [esp + 0x20]
fadd dword [0xad5418]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x60]
inc ebx
add ecx, 0x64
cmp ebx, eax
mov dword [esp + 0x4c], ecx
fstp dword [esp + 0x20]
jl 0x4e1d4e
xor ebx, ebx
mov ecx, dword [esp + 0x29c]
cmp ecx, ebx
je 0x4e1e86
lea edx, [esp + 0xa4]
push edx
jmp 0x4e1e90
lea eax, [esp + 0xa4]
mov ecx, esi
push eax
call fcn.004d7d70
lea ecx, [esp + 0xa4]
mov dword [esp + 0x290], 0xffffffff
mov dword [esp + 0xa4], 0xad52b8
call fcn.004d7800
mov al, 1
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x284
ret 0x1c