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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ebf06
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x638190]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
fld qword [0x5f3df0]
xor ebx, ebx
mov dword [esp + 0x2c], ecx
cmp dword [ebp + 0x18], ebx
je 0x56e440
fild dword [ecx + 0x20]
fidiv dword [ecx + 0x18]
fimul dword [ebp + 0x14]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x56e434
faddp st(1)
call fcn.005c3ce0
sub dword [ebp + 0x14], eax
jmp 0x56e442
fsubrp st(1)
call fcn.005c3ce0
sub dword [ebp + 0x14], eax
jmp 0x56e442
fstp st(0)
cmp dword [ebp + 0x14], ebx
jle 0x56ed51
push esi
lea ecx, [esp + 0xb0]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.0051a020
fld qword [ebp + 0xc]
lea eax, [esp + 0x54]
fchs
push eax
sub esp, 8
mov eax, esp
lea ecx, [esp + 0xb8]
fstp qword [eax]
mov dword [esp + 0x2a4], ebx
mov dword [esp + 0x54], esp
call fcn.00518120
cmp eax, ebx
je 0x56ed3a
lea ecx, [esp + 0xac]
call fcn.00527e90
cmp eax, 3
jl 0x56ed3a
mov eax, dword [esi + 0x18]
lea edi, [eax + 1]
cmp edi, dword [0x6390d0]
jle 0x56e598
mov eax, dword [0x6390c8]
cmp eax, ebx
je 0x56e4dd
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00483100
push ecx
push 0xc
push eax
call fcn.005c3de9
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [0x6390cc]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [0x6390d4]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
xor ecx, ecx
mov eax, edi
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
add esp, 0xc
mov dword [esp + 0x48], eax
mov byte [esp + 0x298], 1
cmp eax, ebx
je 0x56e545
push 0x56bf80
push 0x56b590
push edi
lea esi, [eax + 4]
push 0xc
push esi
mov dword [eax], edi
call fcn.005c3e4c
jmp 0x56e547
xor esi, esi
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
mov byte [esp + 0x298], 0
mov dword [0x6390c8], esi
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov dword [0x6390cc], eax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
add esp, 8
mov dword [0x6390d4], eax
mov dword [0x6390d0], edi
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x108]
call fcn.0053b5d0
mov byte [esp + 0x298], 2
cmp dword [esp + 0x124], ebx
je 0x56ed26
mov ecx, dword [esp + 0x110]
xor esi, esi
xor edi, edi
cmp ecx, dword [esp + 0x114]
ja 0x56ed26
mov edx, dword [esp + 0x124]
push edx
call fcn.0058c800
add esp, 4
test eax, eax
je 0x56e60d
mov ecx, dword [esp + 0x124]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
mov ecx, dword [0x6390c8]
mov esi, eax
mov eax, dword [ecx]
push eax
call fcn.005c2c20
mov dword [eax], esi
lea ecx, [esp + 0x104]
inc edi
call fcn.0053b250
mov ecx, dword [esp + 0x110]
cmp ecx, dword [esp + 0x114]
jbe 0x56e5d9
cmp edi, 1
jne 0x56e6b9
lea ecx, [esp + 0x104]
call fcn.0053b220
lea ecx, [esp + 0x104]
call fcn.0053b460
cmp eax, 6
jne 0x56e6b9
mov eax, dword [esp + 0x124]
lea edx, [eax + 4]
push edx
add eax, 0xc
push eax
lea ecx, [esp + 0x9c]
call fcn.004f8540
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x29c], 3
call fcn.0058c800
add esp, 4
test eax, eax
je 0x56e6a5
lea ecx, [esp + 0x94]
call fcn.004f9480
mov ecx, dword [0x6390c8]
mov edx, dword [ecx]
push edx
mov esi, eax
call fcn.005c2c20
mov dword [eax], esi
lea ecx, [esp + 0x94]
mov byte [esp + 0x298], 2
call fcn.004f85b0
test esi, esi
je 0x56ed26
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
mov ecx, esi
call edx
cmp eax, 6
jne 0x56e6e8
mov eax, dword [esi + 8]
mov ecx, dword [0x6390cc]
mov edx, dword [0x6390d4]
mov dword [ecx], eax
mov dword [edx], 1
jmp 0x56e715
push 0x3e8
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.004f33f0
mov eax, dword [eax + 4]
mov ecx, dword [0x6390cc]
mov dword [ecx], eax
mov ecx, dword [esi + 0x10]
xor edx, edx
cmp ecx, eax
mov eax, dword [0x6390d4]
sete dl
mov dword [eax], edx
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x3c]
mov edi, 1
call fcn.005bebf0
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x298], 4
test eax, eax
je 0x56e8f6
mov dword [esp + 0x14], 0xc
add eax, 0xffffffec
push eax
lea ecx, [esp + 0x1c8]
call fcn.0053b5d0
xor ebx, ebx
mov byte [esp + 0x298], 5
cmp dword [esp + 0x1e4], ebx
je 0x56e8c3
mov edx, dword [esp + 0x1d0]
cmp edx, dword [esp + 0x1d4]
ja 0x56e865
mov eax, dword [esp + 0x1e4]
push eax
call fcn.0058c800
add esp, 4
test eax, eax
je 0x56e7bc
mov ecx, dword [esp + 0x1e4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x6390c8]
mov edx, dword [esp + 0x14]
add ecx, edx
mov esi, eax
mov eax, dword [ecx]
push eax
call fcn.005c2c20
mov dword [eax], esi
lea ecx, [esp + 0x1c4]
inc ebx
call fcn.0053b250
mov ecx, dword [esp + 0x1d0]
cmp ecx, dword [esp + 0x1d4]
jbe 0x56e782
cmp ebx, 1
jne 0x56e865
lea ecx, [esp + 0x1c4]
call fcn.0053b220
lea ecx, [esp + 0x1c4]
call fcn.0053b460
cmp eax, 6
jne 0x56e865
mov eax, dword [esp + 0x1e4]
lea edx, [eax + 4]
push edx
add eax, 0xc
push eax
lea ecx, [esp + 0x84]
call fcn.004f8540
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x29c], 6
call fcn.0058c800
add esp, 4
test eax, eax
je 0x56e854
lea ecx, [esp + 0x7c]
call fcn.004f9480
mov ecx, dword [0x6390c8]
mov edx, dword [esp + 0x14]
add ecx, edx
mov esi, eax
mov eax, dword [ecx]
push eax
call fcn.005c2c20
mov dword [eax], esi
lea ecx, [esp + 0x7c]
mov byte [esp + 0x298], 5
call fcn.004f85b0
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
cmp eax, 6
jne 0x56e88e
mov eax, dword [esi + 8]
mov ecx, dword [0x6390cc]
mov edx, dword [0x6390d4]
mov dword [ecx + edi*4], eax
mov dword [edx + edi*4], 1
jmp 0x56e8bd
push 0x3e8
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.004f33f0
mov eax, dword [eax + 4]
mov ecx, dword [0x6390cc]
mov dword [ecx + edi*4], eax
mov ecx, dword [esi + 0x10]
xor edx, edx
cmp ecx, eax
mov eax, dword [0x6390d4]
sete dl
mov dword [eax + edi*4], edx
inc edi
add dword [esp + 0x14], 0xc
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x298], 4
call fcn.0053b190
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
cmp eax, dword [ecx]
jne 0x56e8e7
xor eax, eax
jmp 0x56e8ea
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x56e747
lea ecx, [esp + 0x38]
mov byte [esp + 0x298], 2
call fcn.00440ab0
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0xb0]
mov dword [esp + 0x34], edi
call fcn.0052ce50
push eax
lea ecx, [esp + 0xdc]
mov byte [esp + 0x29c], 7
call fcn.004f0010
lea ecx, [esp + 0xec]
mov byte [esp + 0x298], 9
call fcn.00440ab0
mov eax, dword [esp + 0xe0]
mov ecx, dword [ebp + 0x14]
mov edi, dword [esp + 0xe8]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], 0x40
cmp eax, 0x80000000
je 0x56e986
mov esi, eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x20]
cmp eax, 0x80000000
je 0x56e99a
cmp edi, eax
jle 0x56e99a
mov edi, eax
mov dword [esp + 0x44], eax
call fcn.004fa700
push 1
mov dword [esp + 0x4c], eax
call fcn.004fa710
add esp, 4
cmp esi, edi
mov dword [esp + 0x34], 0
jge 0x56ecdd
lea ecx, [ecx]
cmp dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
jle 0x56ec74
xor edi, edi
mov dword [esp + 0x40], edi
lea esp, [esp]
mov edx, dword [0x6390c8]
mov eax, dword [edi + edx]
mov ecx, dword [0x6390cc]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + edx*4]
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x18]
jne 0x56eb70
mov eax, dword [0x6390d4]
mov ecx, edx
cmp dword [eax + ecx*4], 0
je 0x56eb70
mov edx, dword [0x6390c8]
mov eax, dword [edi + edx + 8]
mov ecx, dword [esp + 0x24]
mov esi, dword [eax + ecx*4 - 4]
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
cmp eax, 1
jne 0x56ea88
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call fcn.004f2ea0
fldz
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
fld qword [esp + 0x74]
fcom st(1)
mov dword [esp + 0x70], ecx
fnstsw ax
fstp st(1)
test ah, 1
jne 0x56ea79
fadd qword [0x5f3df0]
jmp 0x56ea7f
fsub qword [0x5f3df0]
call fcn.005c3ce0
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x24], 1
jle 0x56eb70
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x18]
jne 0x56eb70
mov ecx, dword [esp + 0x24]
lea eax, [ecx - 2]
cmp eax, ecx
mov dword [esp + 0x20], eax
jge 0x56eb70
jmp 0x56eac0
mov edx, dword [0x6390c8]
mov eax, dword [edi + edx + 8]
mov ecx, dword [esp + 0x20]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
cmp eax, 6
jne 0x56eae4
mov eax, dword [esi + 8]
jmp 0x56eb53
push 0x3e8
lea ecx, [esp + 0x100]
push ecx
mov ecx, esi
call fcn.004f33f0
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x18]
jne 0x56eb70
lea edx, [esp + 0x94]
push edx
mov ecx, esi
call fcn.004f2ea0
fldz
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
fld qword [esp + 0x64]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x56eb48
fadd qword [0x5f3df0]
jmp 0x56eb4e
fsub qword [0x5f3df0]
call fcn.005c3ce0
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x18]
jne 0x56eb70
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jl 0x56eac0
xor esi, esi
cmp dword [esp + 0x24], esi
jle 0x56ec5a
lea esp, [esp]
mov eax, dword [0x6390c8]
mov ecx, dword [edi + eax + 8]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 6
jne 0x56ebc5
mov ecx, dword [0x6390c8]
mov edx, dword [edi + ecx + 8]
mov eax, dword [edx + esi*4]
mov ecx, dword [0x6390b0]
lea edx, [ecx + ebx*8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
call fcn.0056bf90
jmp 0x56ebef
mov eax, dword [0x6390c8]
mov ecx, dword [edi + eax + 8]
mov eax, dword [ecx + esi*4]
mov edx, dword [0x6390b0]
lea ecx, [edx + ebx*8]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
call fcn.0056c0b0
mov edx, dword [esp + 0x14]
add ebx, eax
add edx, 0xfffffffb
cmp ebx, edx
mov dword [esp + 0x20], ebx
jle 0x56ec4f
mov edi, dword [esp + 0x14]
add edi, edi
add edi, edi
add edi, edi
lea eax, [edi + 0x200]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
mov eax, dword [0x6390b0]
push edi
push eax
push ebx
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esp + 0x24]
mov edx, dword [0x6390b0]
add ecx, 0x40
push edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCR90.dll_free]
mov edi, dword [esp + 0x54]
mov dword [0x6390b0], ebx
mov ebx, dword [esp + 0x34]
add esp, 0x14
inc esi
cmp esi, dword [esp + 0x24]
jl 0x56eb80
mov eax, dword [esp + 0x28]
inc eax
add edi, 0xc
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edi
jl 0x56e9e0
mov eax, ebx
and eax, 0x80000001
jns 0x56ec82
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x56eca1
mov esi, dword [esp + 0x34]
inc esi
mov dword [esp + 0x34], esi
call fcn.004fa700
imul eax, esi
add eax, dword [ebp + 0x14]
sub dword [esp + 0x18], eax
jmp 0x56ecbe
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x50]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
mov dword [esp + 0x40], 0
call edx
mov eax, dword [esp + 0x18]
add eax, dword [ebp + 0x14]
xor ebx, ebx
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x18], eax
jl 0x56e9c0
mov edi, dword [esp + 0x30]
test edi, edi
jle 0x56ed05
xor esi, esi
jmp 0x56ecf0
mov eax, dword [0x6390c8]
lea ecx, [esi + eax]
call fcn.004f9f00
add esi, 0xc
sub edi, 1
jne 0x56ecf0
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004fa710
add esp, 4
lea ecx, [esp + 0xd8]
mov byte [esp + 0x298], 2
call fcn.004f0040
lea ecx, [esp + 0x104]
mov byte [esp + 0x298], 0
call fcn.0053b190
lea ecx, [esp + 0xac]
mov dword [esp + 0x298], 0xffffffff
call fcn.0051a750
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.005c3bb6
mov esp, ebp
pop ebp
ret 0x1c