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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fdc71
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 0x479e45
xor al, al
jmp 0x47a85f
fld qword [0x637f38]
call sub.msvcrt.dll__CIacos
fld dword [esp + 0x298]
fchs
fmulp st(1)
lea edi, [esp + 0x84]
mov ebp, 4
fmul qword [0x637f48]
fld st(0)
fcos
fstp dword [esp + 0x54]
fsin
fstp dword [esp + 0x50]
mov ecx, edi
call fcn.004988c6
add edi, 8
dec ebp
jne 0x479e7b
push 0xbf000000
push 0xbf000000
lea ecx, [esp + 0x18]
call fcn.004988d6
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.00489046
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0x637f28]
fstp dword [esp]
call fcn.004988d6
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x90], edx
call fcn.00489036
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
lea ecx, [esp + 0x74]
fsub dword [0x637f28]
fstp dword [esp]
push 0xbf000000
call fcn.004988d6
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x98], edx
call fcn.00489036
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsub dword [0x637f28]
fstp dword [esp]
call fcn.00489046
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0x637f28]
fstp dword [esp]
call fcn.004988d6
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.004988c6
add edi, 8
dec ebp
jne 0x479f89
mov al, byte [esp + 0x2b0]
test al, al
je 0x479fdd
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 0x479fa3
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x47a1eb
fld dword [esp + 0x28]
jmp 0x47a1ef
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 0x479fdf
mov al, byte [esp + 0x2ac]
test al, al
je 0x479fc1
mov ecx, esi
call fcn.00489046
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsubr dword [0x637f28]
fstp dword [esp]
call fcn.00489036
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0x637f28]
fstp dword [esp]
call fcn.004988d6
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004988f6
lea ecx, [esp + 0x48]
call fcn.00498916
fcomp qword [0x637f58]
fnstsw ax
test ah, 1
je 0x47a0a3
mov eax, dword [esp + 0x29c]
mov ecx, esi
push eax
call fcn.004791d6
jmp 0x47a85f
mov ecx, esi
call fcn.00489046
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsub dword [0x637f28]
fstp dword [esp]
call fcn.00489036
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsubr dword [0x637f28]
fstp dword [esp]
call fcn.004988d6
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004988f6
lea ecx, [esp + 0x48]
call fcn.00498916
fcomp qword [0x637f58]
fnstsw ax
test ah, 1
je 0x47a11f
mov ecx, dword [esp + 0x29c]
push ecx
mov ecx, esi
call fcn.00478d46
jmp 0x47a85f
mov ecx, esi
call fcn.00489036
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsubr dword [0x637f28]
fstp dword [esp]
call fcn.00489046
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsubr dword [0x637f28]
fstp dword [esp]
call fcn.004988d6
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004988f6
lea ecx, [esp + 0x48]
call fcn.00498916
fcomp qword [0x637f58]
fnstsw ax
test ah, 1
je 0x47a19b
mov edx, dword [esp + 0x29c]
mov ecx, esi
push edx
call fcn.0047a886
jmp 0x47a85f
sub esp, 8
lea eax, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004988f6
lea ecx, [esp + 0x48]
call fcn.00498916
fcomp qword [0x637f58]
fnstsw ax
test ah, 1
je 0x479fc1
mov ecx, dword [esp + 0x29c]
cmp ecx, ebx
je 0x47a85d
push 1
push 1
push 1
push esi
call fcn.004702d6
jmp 0x47a85d
fld dword [esp + 0x30]
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x47a204
fld dword [esp + 0x38]
jmp 0x47a208
fld dword [esp + 0x40]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x47a234
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x47a22a
mov ecx, dword [esp + 0x28]
jmp 0x47a251
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
jmp 0x47a255
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x47a24d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
jmp 0x47a255
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x47a26a
fld dword [esp + 0x2c]
jmp 0x47a26e
fld dword [esp + 0x34]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x47a283
fld dword [esp + 0x3c]
jmp 0x47a287
fld dword [esp + 0x44]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x47a2b3
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x47a2a9
mov edx, dword [esp + 0x2c]
jmp 0x47a2d0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jmp 0x47a2d4
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x47a2cc
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
jmp 0x47a2d4
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x47a2e9
fld dword [esp + 0x28]
jmp 0x47a2ed
fld dword [esp + 0x30]
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x47a302
fld dword [esp + 0x38]
jmp 0x47a306
fld dword [esp + 0x40]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x47a332
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x47a328
mov eax, dword [esp + 0x28]
jmp 0x47a34f
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
jmp 0x47a353
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x47a34b
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], edx
jmp 0x47a353
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x47a368
fld dword [esp + 0x2c]
jmp 0x47a36c
fld dword [esp + 0x34]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x47a381
fld dword [esp + 0x3c]
jmp 0x47a385
fld dword [esp + 0x44]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x47a3b1
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x47a3a7
mov ecx, dword [esp + 0x2c]
jmp 0x47a3ce
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
jmp 0x47a3d2
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x47a3ca
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jmp 0x47a3d2
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
sub esp, 8
fadd dword [0x637f28]
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 [0x637f28]
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 [0x637f50]
mov edi, eax
mov al, byte [esp + 0x2b0]
fsubp st(1)
mov dword [esp + 0x60], edi
test al, al
fmul dword [0x637f28]
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 [0x637f50]
fsubp st(1)
fmul dword [0x637f28]
fstp dword [esp + 0x48]
fmul dword [0x637f28]
fstp dword [esp + 0x70]
fld dword [esp + 0x64]
fmul dword [0x637f28]
fstp dword [esp + 0x10]
je 0x47a4ca
mov ecx, esi
call fcn.00489046
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
fild qword [esp + 0x64]
mov ecx, esi
fmul dword [0x637f28]
fsubr dword [esp + 0x6c]
fstp dword [esp + 0x6c]
call fcn.00489036
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebx
fild qword [esp + 0x7c]
fmul dword [0x637f28]
fsubr dword [esp + 0x48]
fstp dword [esp + 0x48]
push ebx
lea ecx, [esp + 0xa8]
call fcn.00470186
push esi
lea ecx, [esp + 0xa8]
mov dword [esp + 0x294], ebx
call fcn.00470416
mov ecx, esi
call fcn.00489086
push eax
mov ecx, esi
call fcn.00489076
and eax, 0xffff
lea ecx, [esp + 0xa8]
push eax
push edi
push ebp
call fcn.00470456
push 0x100
mov ecx, esi
call fcn.0047f496
push eax
lea ecx, [esp + 0xac]
call fcn.0047ff36
mov ecx, esi
call fcn.0048eb66
test al, al
je 0x47a53e
lea ecx, [esp + 0xa4]
call fcn.0048ec06
mov eax, dword [esp + 0x2a8]
cmp eax, ebx
je 0x47a551
mov edx, dword [eax]
mov dword [esp + 0x58], edx
jmp 0x47a564
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.00488e96
test al, al
jne 0x47a6e2
xor ebp, ebp
cmp edi, ebx
mov dword [esp + 0x48], ebx
jle 0x47a817
mov dword [esp + 0x4c], ebx
jmp 0x47a591
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 0x47a817
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.00480376
mov ecx, esi
mov edi, eax
call fcn.0048eb66
test al, al
je 0x47a5e7
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0xa4]
push eax
push ebx
call fcn.0048ee96
mov ebp, eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jle 0x47a6af
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 0x47a650
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.00489606
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov cx, word [esp + 0x1a]
test ebp, ebp
je 0x47a691
mov byte [ebp], ch
inc ebp
fld dword [esp + 0x1c]
fadd dword [0x637f50]
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 0x47a60d
fld dword [esp + 0x20]
fadd dword [0x637f50]
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 0x47a58f
jmp 0x47a815
test edi, edi
jle 0x47a815
mov dword [esp + 0x4c], 0
jmp 0x47a6f8
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 0x47a815
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
xor ebp, ebp
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x47a7ef
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 0x47a784
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.00489606
mov edi, dword [eax]
mov ecx, esi
call fcn.0048eb66
test al, al
je 0x47a7c3
push 1
jmp 0x47a7c5
push 0
push edi
push ebx
push ebp
lea ecx, [esp + 0xb4]
call fcn.0047fa46
fld dword [esp + 0x1c]
fadd dword [0x637f50]
mov eax, dword [esp + 0x5c]
inc ebp
cmp ebp, eax
fstp dword [esp + 0x1c]
jl 0x47a741
fld dword [esp + 0x20]
fadd dword [0x637f50]
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 0x47a6f4
xor ebx, ebx
mov ecx, dword [esp + 0x29c]
cmp ecx, ebx
je 0x47a82c
lea edx, [esp + 0xa4]
push edx
jmp 0x47a836
lea eax, [esp + 0xa4]
mov ecx, esi
push eax
call fcn.00470716
lea ecx, [esp + 0xa4]
mov dword [esp + 0x290], 0xffffffff
mov dword [esp + 0xa4], 0x637df0
call fcn.004701a6
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