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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x680f31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2cc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x5c286a
xor eax, eax
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x140]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
call fcn.00654ac0
lea ecx, [esp + 0x260]
mov dword [esp + 0x2e0], 0
call fcn.00654ac0
lea ecx, [esp + 0x98]
mov byte [esp + 0x2e0], 1
call fcn.0064dc20
lea ecx, [esp + 0xe0]
call fcn.0064dc20
lea ecx, [esp + 0x28]
call fcn.0064dc20
lea ecx, [esp + 0x44]
call fcn.0064dc20
lea ebx, [esi + 0x34]
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0048b670
mov ecx, dword [esi + 0x30]
call fcn.004da3a0
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x68]
mov esi, dword [ebx + 8]
mov edi, eax
push 0xffffffffffffffff
mov ecx, ebx
lea eax, [esi + 1]
push eax
call fcn.0048b670
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x5c]
push eax
mov dword [ecx + esi*4], edi
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x7c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
sub esp, 0x18
mov dword [esp + 0xc0], ecx
lea eax, [esp + 0xb0]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [esp + 0xc4], edx
mov esi, dword [edi]
push eax
call fcn.0064dc70
mov ecx, edi
call dword [esi + 0xa0]
fstp qword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
push eax
lea eax, [esp + 0x60]
push ecx
push eax
mov ecx, edi
call dword [edx + 0xe0]
push eax
lea ecx, [esp + 0x114]
call fcn.006578b0
mov edx, dword [edi]
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call dword [edx + 0x84]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
sub esp, 0x18
mov dword [esp + 0x108], ecx
lea eax, [esp + 0xf8]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [esp + 0x10c], edx
mov esi, dword [edi]
push eax
call fcn.0064dc70
mov ecx, edi
call dword [esi + 0xa0]
fstp qword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
push eax
lea eax, [esp + 0x60]
push ecx
push eax
mov ecx, edi
call dword [edx + 0xe0]
push eax
lea ecx, [esp + 0xfc]
call fcn.006578b0
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x5c2c24
push 0x3ff00000
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x74]
call fcn.00657770
lea ecx, [esp + 0x110]
push eax
lea edx, [esp + 0x12c]
push ecx
push edx
call fcn.006574b0
add esp, 0xc
lea ecx, [esp + 0x80]
push eax
call fcn.00657020
lea eax, [esp + 0x80]
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.006576a0
add esp, 8
lea ecx, [esp + 0xb0]
push eax
call fcn.006578b0
push 0x3ff00000
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x74]
call fcn.00657770
push eax
lea edx, [esp + 0xfc]
lea eax, [esp + 0x12c]
push edx
push eax
call fcn.006574b0
add esp, 0xc
lea ecx, [esp + 0x80]
push eax
call fcn.00657020
lea ecx, [esp + 0x80]
lea edx, [esp + 0x5c]
push ecx
push edx
jmp 0x5c2ccf
lea eax, [esp + 0x110]
lea ecx, [esp + 0x5c]
push eax
push 0x3ff00000
push 0
push 0
push 0
push 0
push 0
call fcn.00657770
lea ecx, [esp + 0x12c]
push eax
push ecx
call fcn.006574b0
add esp, 0xc
lea ecx, [esp + 0x80]
push eax
call fcn.00657020
lea edx, [esp + 0x80]
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.006576a0
add esp, 8
lea ecx, [esp + 0xb0]
push eax
call fcn.006578b0
lea ecx, [esp + 0xf8]
push ecx
push 0x3ff00000
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x78]
call fcn.00657770
lea edx, [esp + 0x12c]
push eax
push edx
call fcn.006574b0
add esp, 0xc
lea ecx, [esp + 0x80]
push eax
call fcn.00657020
lea eax, [esp + 0x80]
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.006576a0
add esp, 8
lea ecx, [esp + 0xc8]
push eax
call fcn.006578b0
mov eax, dword [esi + 8]
push 0
fld qword [esp + 0xbc]
test eax, eax
push 0
jne 0x5c2d8f
fmul qword [esi + 0x18]
sub esp, 8
lea ecx, [esp + 0x6c]
sub esp, 8
fadd qword [esp + 0xb8]
fstp qword [esp + 8]
fld qword [esp + 0xc8]
fmul qword [esi + 0x18]
fadd qword [esp + 0xb0]
fstp qword [esp]
call fcn.0064dc40
fld qword [esp + 0xd0]
fmul qword [esi + 0x20]
push 0
push 0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
fadd qword [esp + 0xf0]
sub esp, 8
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x40], edx
fstp qword [esp]
fld qword [esp + 0xd8]
fmul qword [esi + 0x20]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
sub esp, 8
fadd qword [esp + 0xf8]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x74]
fstp qword [esp]
jmp 0x5c2e1f
fmul qword [esi + 0x20]
sub esp, 8
lea ecx, [esp + 0x6c]
sub esp, 8
fadd qword [esp + 0xb8]
fstp qword [esp + 8]
fld qword [esp + 0xc8]
fmul qword [esi + 0x20]
fadd qword [esp + 0xb0]
fstp qword [esp]
call fcn.0064dc40
fld qword [esp + 0xd0]
fmul qword [esi + 0x18]
push 0
push 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
fadd qword [esp + 0xf0]
sub esp, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x40], ecx
fstp qword [esp]
fld qword [esp + 0xd8]
fmul qword [esi + 0x18]
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
sub esp, 8
fadd qword [esp + 0xf8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
lea ecx, [esp + 0x74]
fstp qword [esp]
call fcn.0064dc40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [esi]
mov dword [esp + 0x54], ecx
test eax, eax
mov dword [esp + 0x58], edx
jne 0x5c2ef6
push 0xb8
call fcn.0065e5d0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x2e0], 2
je 0x5c2ea9
sub esp, 0x18
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0064dc70
sub esp, 0x18
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0064dc70
mov ecx, dword [esp + 0x50]
call fcn.004c79e0
mov dword [esp + 0xc], eax
jmp 0x5c2eb5
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 0x70]
mov dword [esp + 0x10], eax
mov dword [eax + 0x70], ecx
mov edx, dword [edi + 0x74]
mov dword [eax + 0x74], edx
mov dword [eax + 0x6c], 1
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
inc eax
push eax
mov ecx, ebx
mov byte [esp + 0x2e8], 1
call fcn.0048b670
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [eax + edx*4], ecx
jmp 0x5c2f35
push edi
mov ecx, esi
call fcn.005c2130
mov dword [eax + 0x6c], 1
mov ecx, dword [edi + 0x70]
mov dword [eax + 0x70], ecx
mov edx, dword [edi + 0x74]
mov dword [esp + 0x10], eax
mov dword [eax + 0x74], edx
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
inc eax
push eax
mov ecx, ebx
call fcn.0048b670
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], edx
cmp dword [esi], 0
jne 0x5c2fd1
sub esp, 0x18
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0064dc70
sub esp, 0x18
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0064dc70
lea eax, [esp + 0x218]
push eax
call fcn.00655af0
add esp, 0x34
push eax
lea ecx, [esp + 0x144]
mov byte [esp + 0x2e4], 3
call fcn.00654de0
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x2e0], 1
call fcn.00456760
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x68]
mov dword [esp + 0xc], eax
sub esp, 0x78
lea eax, [esp + 0x1b8]
mov ecx, esp
mov dword [esp + 0x8c], esp
push eax
call fcn.00654cc0
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
call dword [edx + 0x2c]
jmp 0x5c2fe1
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.005c2130
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
inc eax
push eax
mov ecx, ebx
call fcn.0048b670
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [edx + eax*4], ecx
mov eax, dword [esi + 4]
cmp eax, 1
jne 0x5c31ad
cmp dword [esi], 0
jne 0x5c3118
mov edx, dword [ecx]
lea eax, [esp + 0x5c]
push eax
call dword [edx + 0x7c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x5c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x84]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
sub esp, 0x18
mov dword [esp + 0x6c], ecx
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov dword [esp + 0x74], edx
call fcn.0064dc70
sub esp, 0x18
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0064dc70
lea eax, [esp + 0x218]
push eax
call fcn.00655af0
add esp, 0x34
push eax
lea ecx, [esp + 0x144]
mov byte [esp + 0x2e4], 4
call fcn.00654de0
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x2e0], 1
call fcn.00456760
mov ecx, dword [esp + 0x10]
push 0
mov edx, dword [ecx]
call dword [edx + 0x68]
mov dword [esp + 0xc], eax
sub esp, 0x78
lea eax, [esp + 0x1b8]
mov ecx, esp
mov dword [esp + 0x8c], esp
push eax
call fcn.00654cc0
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
call dword [edx + 0x2c]
jmp 0x5c3124
push ecx
mov ecx, esi
call fcn.005c2130
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
inc eax
push eax
mov ecx, ebx
call fcn.0048b670
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi]
test ecx, ecx
jne 0x5c3181
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x68]
sub esp, 0x78
lea edx, [esp + 0x1b8]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
mov dword [esp + 0x88], eax
call fcn.00654cc0
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx]
call dword [eax + 0x2c]
jmp 0x5c318d
push eax
mov ecx, esi
call fcn.005c2130
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
inc eax
push eax
mov ecx, ebx
call fcn.0048b670
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov dword [ecx + eax*4], edx
mov edx, dword [edi]
lea eax, [esp + 0x1d0]
push eax
mov ecx, edi
call dword [edx + 0xdc]
mov eax, dword [esi + 4]
test eax, eax
jne 0x5c31ce
mov ecx, dword [esi + 0x38]
mov ebx, dword [ecx + 8]
jmp 0x5c31df
cmp eax, 1
jne 0x5c31db
mov edx, dword [esi + 0x38]
mov ebx, dword [edx + 0x10]
jmp 0x5c31df
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x1b8]
push ecx
mov ecx, ebx
call dword [eax + 0xdc]
mov edx, dword [ebx]
lea eax, [esp + 0x5c]
push eax
mov ecx, ebx
call dword [edx + 0x7c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x1b8]
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x1d4]
push ecx
lea eax, [esp + 0xa0]
push edx
lea ecx, [esp + 0x1f4]
push eax
push ecx
call fcn.006567f0
add esp, 0x14
push eax
lea ecx, [esp + 0x144]
mov byte [esp + 0x2e4], 5
call fcn.00654de0
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x2e0], 1
call fcn.00456760
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x5c3509
mov eax, dword [ebx + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
jle 0x5c34ee
mov eax, dword [ebx + 4]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, edi
call dword [edx + 0x10c]
test eax, eax
jne 0x5c3462
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*4]
lea edx, [esp + 0x128]
push edx
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov esi, dword [edi]
sub esp, 0x18
lea eax, [esp + 0x140]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0064dc70
mov ecx, edi
call dword [esi + 0xc8]
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x10]
fstp qword [esp + 0x74]
mov ecx, dword [ecx + edx*4]
lea edx, [esp + 0x5c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x84]
mov esi, dword [edi]
sub esp, 0x18
lea eax, [esp + 0x140]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0064dc70
mov ecx, edi
call dword [esi + 0xc8]
fld qword [esp + 0x74]
fcomp st(1)
mov esi, dword [edi]
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x5c33bc
sub esp, 0x18
lea edx, [esp + 0x140]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0064dc70
mov ecx, edi
call dword [esi + 0x108]
cmp eax, 3
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
jne 0x5c3391
cmp ecx, 1
jne 0x5c34d9
sub esp, 0x78
lea edx, [esp + 0x1b8]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
call fcn.00654cc0
mov byte [esp + 0x358], 6
jmp 0x5c340b
test ecx, ecx
jne 0x5c34d9
sub esp, 0x78
lea edx, [esp + 0x1b8]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
call fcn.00654cc0
mov byte [esp + 0x358], 7
jmp 0x5c340b
sub esp, 0x18
lea eax, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0064dc70
mov ecx, edi
call dword [esi + 0x108]
cmp eax, 3
jne 0x5c3430
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0xc], 1
jne 0x5c34d9
sub esp, 0x78
lea edx, [esp + 0x1b8]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
call fcn.00654cc0
mov byte [esp + 0x358], 8
mov esi, dword [esp + 0x88]
push esi
mov ecx, ebx
call fcn.004ea1e0
mov eax, dword [eax]
mov byte [esp + 0x358], 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
jmp 0x5c34dd
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x5c34d9
sub esp, 0x78
lea edx, [esp + 0x1b8]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
call fcn.00654cc0
mov byte [esp + 0x358], 9
jmp 0x5c340b
cmp eax, 1
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
jne 0x5c3499
cmp ecx, 1
jne 0x5c34dd
sub esp, 0x78
lea edx, [esp + 0x1b8]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
call fcn.00654cc0
mov byte [esp + 0x358], 0xa
jmp 0x5c3412
test ecx, ecx
jne 0x5c34dd
sub esp, 0x78
lea edx, [esp + 0x1b8]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
call fcn.00654cc0
push esi
mov ecx, ebx
mov byte [esp + 0x35c], 0xb
call fcn.004ea1e0
mov eax, dword [eax]
mov byte [esp + 0x358], 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
jmp 0x5c34dd
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x5c329f
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x3c]
xor eax, eax
test ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jle 0x5c36e5
jmp 0x5c3588
mov edx, dword [ebx + 8]
xor ecx, ecx
test edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
jle 0x5c34f2
mov eax, dword [ebx + 4]
mov eax, dword [eax + ecx*4]
fld qword [eax + 0x70]
fcomp qword [edi + 0x70]
fnstsw ax
test ah, 1
jne 0x5c3576
sub esp, 0x78
lea edx, [esp + 0x1b8]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
call fcn.00654cc0
mov eax, dword [esp + 0x88]
mov ecx, ebx
push eax
mov byte [esp + 0x35c], 0xc
call fcn.004ea1e0
mov eax, dword [eax]
mov byte [esp + 0x358], 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x5c351a
jmp 0x5c34f2
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x38]
xor edi, edi
mov edx, dword [ecx + eax*4]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 8]
mov esi, edx
mov dword [esp + 0x20], esi
inc esi
cmp esi, edi
jne 0x5c35c4
cmp eax, edi
je 0x5c35b9
push eax
mov dword [esp + 0x78], edx
call fcn.0065e732
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x5c36c2
cmp eax, edi
jne 0x5c35fc
lea edi, [esi*4]
push edi
call fcn.0065e5d0
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x5c36c2
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jg 0x5c362a
cmp edx, esi
jge 0x5c361a
mov ecx, esi
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 8], esi
jmp 0x5c36c2
jle 0x5c3622
sub edx, esi
mov dword [esp + 0x74], edx
mov dword [ebx + 8], esi
jmp 0x5c36c2
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x5c3654
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5c3648
mov eax, 4
jmp 0x5c3654
cmp eax, 0x400
jle 0x5c3654
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x40], eax
jl 0x5c3662
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x40]
lea ecx, [eax*4]
push ecx
call fcn.0065e5d0
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x78], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 8]
lea esi, [ecx + 1]
lea edi, [eax + edx*4]
mov ecx, esi
xor eax, eax
sub ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push eax
call fcn.0065e732
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x48]
add esp, 8
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5c3584
lea ecx, [esp + 0x260]
mov byte [esp + 0x2e0], 0
call fcn.00456760
lea ecx, [esp + 0x140]
mov dword [esp + 0x2e0], 0xffffffff
call fcn.00456760
mov ecx, dword [esp + 0x2d8]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8