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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ee69b
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 0x56a86f
xor al, al
jmp 0x56b289
fld qword [0xf6916c]
call sub.msvcrt.dll__CIacos
fld dword [esp + 0x298]
fchs
fmulp st(1)
lea edi, [esp + 0x84]
mov ebp, 4
fmul qword [0xf6917c]
fld st(0)
fcos
fstp dword [esp + 0x54]
fsin
fstp dword [esp + 0x50]
mov ecx, edi
call fcn.005892f0
add edi, 8
dec ebp
jne 0x56a8a5
push 0xbf000000
push 0xbf000000
lea ecx, [esp + 0x18]
call fcn.00589300
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.00579a70
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0xf6915c]
fstp dword [esp]
call fcn.00589300
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x90], edx
call fcn.00579a60
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
lea ecx, [esp + 0x74]
fsub dword [0xf6915c]
fstp dword [esp]
push 0xbf000000
call fcn.00589300
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x98], edx
call fcn.00579a60
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsub dword [0xf6915c]
fstp dword [esp]
call fcn.00579a70
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0xf6915c]
fstp dword [esp]
call fcn.00589300
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.005892f0
add edi, 8
dec ebp
jne 0x56a9b3
mov al, byte [esp + 0x2b0]
test al, al
je 0x56aa07
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 0x56a9cd
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x56ac15
fld dword [esp + 0x28]
jmp 0x56ac19
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 0x56aa09
mov al, byte [esp + 0x2ac]
test al, al
je 0x56a9eb
mov ecx, esi
call fcn.00579a70
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsubr dword [0xf6915c]
fstp dword [esp]
call fcn.00579a60
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0xf6915c]
fstp dword [esp]
call fcn.00589300
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00589320
lea ecx, [esp + 0x48]
call fcn.00589340
fcomp qword [0xf6918c]
fnstsw ax
test ah, 1
je 0x56aacd
mov eax, dword [esp + 0x29c]
mov ecx, esi
push eax
call fcn.00569c00
jmp 0x56b289
mov ecx, esi
call fcn.00579a70
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsub dword [0xf6915c]
fstp dword [esp]
call fcn.00579a60
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsubr dword [0xf6915c]
fstp dword [esp]
call fcn.00589300
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00589320
lea ecx, [esp + 0x48]
call fcn.00589340
fcomp qword [0xf6918c]
fnstsw ax
test ah, 1
je 0x56ab49
mov ecx, dword [esp + 0x29c]
push ecx
mov ecx, esi
call fcn.00569770
jmp 0x56b289
mov ecx, esi
call fcn.00579a60
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsubr dword [0xf6915c]
fstp dword [esp]
call fcn.00579a70
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsubr dword [0xf6915c]
fstp dword [esp]
call fcn.00589300
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00589320
lea ecx, [esp + 0x48]
call fcn.00589340
fcomp qword [0xf6918c]
fnstsw ax
test ah, 1
je 0x56abc5
mov edx, dword [esp + 0x29c]
mov ecx, esi
push edx
call fcn.0056b2b0
jmp 0x56b289
sub esp, 8
lea eax, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00589320
lea ecx, [esp + 0x48]
call fcn.00589340
fcomp qword [0xf6918c]
fnstsw ax
test ah, 1
je 0x56a9eb
mov ecx, dword [esp + 0x29c]
cmp ecx, ebx
je 0x56b287
push 1
push 1
push 1
push esi
call fcn.00560d00
jmp 0x56b287
fld dword [esp + 0x30]
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x56ac2e
fld dword [esp + 0x38]
jmp 0x56ac32
fld dword [esp + 0x40]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x56ac5e
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x56ac54
mov ecx, dword [esp + 0x28]
jmp 0x56ac7b
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
jmp 0x56ac7f
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x56ac77
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
jmp 0x56ac7f
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x56ac94
fld dword [esp + 0x2c]
jmp 0x56ac98
fld dword [esp + 0x34]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x56acad
fld dword [esp + 0x3c]
jmp 0x56acb1
fld dword [esp + 0x44]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x56acdd
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x56acd3
mov edx, dword [esp + 0x2c]
jmp 0x56acfa
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jmp 0x56acfe
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x56acf6
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
jmp 0x56acfe
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x56ad13
fld dword [esp + 0x28]
jmp 0x56ad17
fld dword [esp + 0x30]
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x56ad2c
fld dword [esp + 0x38]
jmp 0x56ad30
fld dword [esp + 0x40]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x56ad5c
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x56ad52
mov eax, dword [esp + 0x28]
jmp 0x56ad79
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
jmp 0x56ad7d
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x56ad75
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], edx
jmp 0x56ad7d
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x56ad92
fld dword [esp + 0x2c]
jmp 0x56ad96
fld dword [esp + 0x34]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x56adab
fld dword [esp + 0x3c]
jmp 0x56adaf
fld dword [esp + 0x44]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x56addb
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x56add1
mov ecx, dword [esp + 0x2c]
jmp 0x56adf8
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
jmp 0x56adfc
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x56adf4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jmp 0x56adfc
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
sub esp, 8
fadd dword [0xf6915c]
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 [0xf6915c]
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 [0xf69184]
mov edi, eax
mov al, byte [esp + 0x2b0]
fsubp st(1)
mov dword [esp + 0x60], edi
test al, al
fmul dword [0xf6915c]
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 [0xf69184]
fsubp st(1)
fmul dword [0xf6915c]
fstp dword [esp + 0x48]
fmul dword [0xf6915c]
fstp dword [esp + 0x70]
fld dword [esp + 0x64]
fmul dword [0xf6915c]
fstp dword [esp + 0x10]
je 0x56aef4
mov ecx, esi
call fcn.00579a70
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
fild qword [esp + 0x64]
mov ecx, esi
fmul dword [0xf6915c]
fsubr dword [esp + 0x6c]
fstp dword [esp + 0x6c]
call fcn.00579a60
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebx
fild qword [esp + 0x7c]
fmul dword [0xf6915c]
fsubr dword [esp + 0x48]
fstp dword [esp + 0x48]
push ebx
lea ecx, [esp + 0xa8]
call fcn.00560bb0
push esi
lea ecx, [esp + 0xa8]
mov dword [esp + 0x294], ebx
call fcn.00560e40
mov ecx, esi
call fcn.00579ab0
push eax
mov ecx, esi
call fcn.00579aa0
and eax, 0xffff
lea ecx, [esp + 0xa8]
push eax
push edi
push ebp
call fcn.00560e80
push 0x100
mov ecx, esi
call fcn.0056fec0
push eax
lea ecx, [esp + 0xac]
call fcn.00570960
mov ecx, esi
call fcn.0057f590
test al, al
je 0x56af68
lea ecx, [esp + 0xa4]
call fcn.0057f630
mov eax, dword [esp + 0x2a8]
cmp eax, ebx
je 0x56af7b
mov edx, dword [eax]
mov dword [esp + 0x58], edx
jmp 0x56af8e
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.005798c0
test al, al
jne 0x56b10c
xor ebp, ebp
cmp edi, ebx
mov dword [esp + 0x48], ebx
jle 0x56b241
mov dword [esp + 0x4c], ebx
jmp 0x56afbb
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 0x56b241
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.00570da0
mov ecx, esi
mov edi, eax
call fcn.0057f590
test al, al
je 0x56b011
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0xa4]
push eax
push ebx
call fcn.0057f8c0
mov ebp, eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jle 0x56b0d9
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 0x56b07a
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.0057a030
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov cx, word [esp + 0x1a]
test ebp, ebp
je 0x56b0bb
mov byte [ebp], ch
inc ebp
fld dword [esp + 0x1c]
fadd dword [0xf69184]
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 0x56b037
fld dword [esp + 0x20]
fadd dword [0xf69184]
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 0x56afb9
jmp 0x56b23f
test edi, edi
jle 0x56b23f
mov dword [esp + 0x4c], 0
jmp 0x56b122
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 0x56b23f
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
xor ebp, ebp
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x56b219
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 0x56b1ae
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.0057a030
mov edi, dword [eax]
mov ecx, esi
call fcn.0057f590
test al, al
je 0x56b1ed
push 1
jmp 0x56b1ef
push 0
push edi
push ebx
push ebp
lea ecx, [esp + 0xb4]
call fcn.00570470
fld dword [esp + 0x1c]
fadd dword [0xf69184]
mov eax, dword [esp + 0x5c]
inc ebp
cmp ebp, eax
fstp dword [esp + 0x1c]
jl 0x56b16b
fld dword [esp + 0x20]
fadd dword [0xf69184]
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 0x56b11e
xor ebx, ebx
mov ecx, dword [esp + 0x29c]
cmp ecx, ebx
je 0x56b256
lea edx, [esp + 0xa4]
push edx
jmp 0x56b260
lea eax, [esp + 0xa4]
mov ecx, esi
push eax
call fcn.00561140
lea ecx, [esp + 0xa4]
mov dword [esp + 0x290], 0xffffffff
mov dword [esp + 0xa4], 0xf69024
call fcn.00560bd0
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