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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5e6dab
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x118], ecx
mov ecx, esi
mov dword [esp + 0x114], eax
call fcn.00522510
mov ebx, eax
mov dword [esp + 0xb8], ebx
test ebx, ebx
je 0x58d584
call fcn.004f9f20
add eax, eax
lea ecx, [esp + 0x2bc]
mov dword [esp + 0x28], eax
call fcn.00514e60
xor ecx, ecx
lea edi, [ebx + ebx*2]
mov eax, edi
mov edx, 0x10
mul edx
seto cl
mov dword [esp + 0x480], 0
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, 4
mov dword [esp + 0xd0], eax
mov byte [esp + 0x480], 1
test eax, eax
je 0x58bc94
push fcn.0045c490
push fcn.00568b40
push edi
mov dword [eax], edi
add eax, 4
push 0x10
push eax
mov dword [esp + 0x6c], eax
call fcn.005bd55c
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], ecx
jmp 0x58bc9c
mov dword [esp + 0x2c], 0
mov edx, dword [esi + 0x10]
mov eax, 0x800
test word [edx + 2], ax
mov byte [esp + 0x480], 0
mov eax, edx
je 0x58bcc4
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x34], edx
jmp 0x58bcf2
mov ecx, dword [eax + 0x14]
cmp ebx, 3
je 0x58bcd9
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x34], edx
jmp 0x58bcf2
mov edx, dword [eax + 0x24]
add ecx, edx
sar ecx, 1
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x28]
add ecx, eax
sar ecx, 1
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00524fc0
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x110], eax
mov ecx, ebx
shl ecx, 4
mov edx, dword [ecx + eax - 0xc]
lea eax, [ecx + eax - 0x10]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x34], eax
lea eax, [esi + 1]
sar eax, 1
lea ecx, [esp + 0x41c]
mov dword [esp + 0xd0], esi
mov dword [esp + 0x58], eax
call fcn.004ee1e0
lea ecx, [esp + 0x340]
mov byte [esp + 0x480], 2
call fcn.004ee1e0
fld qword [0x5faa68]
fst qword [esp + 0xc4]
xor edi, edi
fst qword [esp + 0xbc]
mov byte [esp + 0x480], 3
fst qword [esp + 0x104]
mov dword [esp + 0x68], edi
fst qword [esp + 0xfc]
fst qword [esp + 0xe4]
fstp qword [esp + 0xdc]
test ebx, ebx
jle 0x58d52f
lea esp, [esp]
mov esi, dword [esp + 0x68]
shl esi, 4
add esi, dword [esp + 0x110]
mov ecx, 0x800
test word [esi + 2], cx
je 0x58c5cf
mov edx, dword [esi + 4]
mov dword [esp + 0x6c], edx
mov ebx, dword [esi + 8]
mov dword [esp + 0x70], ebx
test byte [esi + 2], 0x80
je 0x58c186
mov eax, ecx
test word [esi + 0x12], ax
je 0x58bde9
mov eax, dword [esi + 0x14]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x18]
jmp 0x58bdf3
mov eax, dword [esi + 0x24]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x188], ecx
mov ecx, dword [esp + 0x30]
push 0
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x160], ecx
lea ecx, [esp + 0x188]
push ecx
mov dword [esp + 0x174], edx
mov dword [esp + 0x168], eax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x164]
push edx
push eax
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x2fc]
mov dword [esp + 0x184], ebx
call fcn.00581210
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x480], 4
call fcn.00581620
test eax, eax
je 0x58bfc5
lea ecx, [esp + 0x314]
call fcn.004ee1e0
lea ecx, [esp + 0x314]
push ecx
lea ecx, [esp + 0x2ec]
mov byte [esp + 0x484], 5
call fcn.00582760
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004f9950
fcomp qword [0x5ecc50]
add esp, 0xc
fnstsw ax
test ah, 5
jp 0x58bec9
mov edx, dword [esp + 0x330]
sub edx, dword [esp + 0x28]
push edx
jmp 0x58bed7
mov eax, dword [esp + 0x330]
mov ecx, dword [esp + 0x28]
add eax, ecx
push eax
lea ecx, [esp + 0x318]
call fcn.004f0cf0
mov edx, 0x400
test word [esi + 2], dx
je 0x58bf7b
mov ecx, dword [esp + 0x2c]
mov eax, edi
shl eax, 4
lea esi, [eax + ecx]
lea edx, [esp + 0x318]
push edx
mov ecx, esi
call fcn.00568b90
push 1
mov ecx, esi
call fcn.00568ef0
mov ebx, dword [esp + 0x58]
sub ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
inc edi
mov eax, edi
shl eax, 4
mov dword [esi + 0xc], ebx
lea esi, [eax + ecx]
lea edx, [esp + 0x320]
push edx
mov ecx, esi
call fcn.00568b90
push 1
mov ecx, esi
call fcn.00568ef0
lea ecx, [esp + 0x314]
inc edi
mov dword [esi + 0xc], ebx
mov byte [esp + 0x480], 4
call fcn.004eeaf0
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x480], 3
call fcn.00581260
inc dword [esp + 0x68]
jmp 0x58d502
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea eax, [esp + 0x314]
push eax
call fcn.00568bc0
lea ecx, [esp + 0x314]
add edi, 3
mov byte [esp + 0x480], 4
call fcn.004eeaf0
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x480], 3
call fcn.00581260
inc dword [esp + 0x68]
jmp 0x58d502
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jge 0x58c154
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x1f8]
call fcn.005b98d0
fld qword [esp + 0x1f4]
fstp qword [esp + 0xbc]
lea edx, [esp + 0x30]
fld qword [esp + 0x1fc]
push edx
lea ecx, [esp + 0x218]
fstp qword [esp + 0xc8]
call fcn.005b98d0
fld qword [esp + 0x214]
fstp qword [esp + 0xfc]
lea eax, [esp + 0x38]
fld qword [esp + 0x21c]
push eax
lea ecx, [esp + 0x248]
fstp qword [esp + 0x108]
call fcn.005b98d0
fld qword [esp + 0x244]
fstp qword [esp + 0xdc]
sub esp, 8
fld qword [esp + 0x254]
lea ecx, [esp + 0xf4]
fstp qword [esp + 0xec]
lea edx, [esp + 0x134]
fild dword [esp + 0x30]
lea eax, [esp + 0x104]
fst qword [esp + 0x64]
fstp qword [esp]
push ecx
push edx
push eax
lea ecx, [esp + 0xd0]
push ecx
call fcn.005beec0
fld qword [esp + 0x74]
add esp, 0x10
fstp qword [esp]
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0xec]
push ecx
lea edx, [esp + 0xd0]
push edx
call fcn.005beec0
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x148]
push ecx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x290]
push eax
call fcn.005bef40
add esp, 0x28
push eax
lea ecx, [esp + 0xf0]
call fcn.005befe0
fldz
fld qword [esp + 0xf4]
fcom st(1)
fnstsw ax
fld qword [0x5ecc78]
test ah, 1
jne 0x58c10f
fadd st(1), st(0)
jmp 0x58c111
fsub st(1), st(0)
fld qword [esp + 0xec]
fcom st(3)
fnstsw ax
fstp st(3)
test ah, 1
jne 0x58c127
faddp st(2)
jmp 0x58c129
fsubp st(2)
fxch st(1)
call fcn.005bd3f0
mov dword [esp + 0x17c], eax
call fcn.005bd3f0
lea ecx, [esp + 0x17c]
push ecx
mov ecx, esi
mov dword [esp + 0x184], eax
call fcn.00568b90
jmp 0x58c159
sub eax, ecx
mov dword [esi + 0xc], eax
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
push esi
inc edi
call fcn.004f45a0
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x480], 3
call fcn.00581260
inc dword [esp + 0x68]
jmp 0x58d502
mov edx, ecx
test word [esi + 0x12], dx
je 0x58c19e
mov eax, dword [esi + 0x14]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x3c], ecx
jmp 0x58c1ac
mov edx, dword [esi + 0x24]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x28]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x238]
call fcn.005b98d0
fld qword [esp + 0x234]
fstp qword [esp + 0xbc]
lea edx, [esp + 0x30]
fld qword [esp + 0x23c]
push edx
lea ecx, [esp + 0x208]
fstp qword [esp + 0xc8]
call fcn.005b98d0
fld qword [esp + 0x204]
fstp qword [esp + 0xfc]
lea eax, [esp + 0x38]
fld qword [esp + 0x20c]
push eax
lea ecx, [esp + 0x228]
fstp qword [esp + 0x108]
call fcn.005b98d0
fld qword [esp + 0x224]
fstp qword [esp + 0xdc]
sub esp, 8
fld qword [esp + 0x234]
lea ecx, [esp + 0xf4]
fstp qword [esp + 0xec]
lea edx, [esp + 0x134]
fild dword [esp + 0x30]
lea eax, [esp + 0x104]
fst qword [esp + 0x64]
fstp qword [esp]
push ecx
push edx
push eax
lea ecx, [esp + 0xd0]
push ecx
call fcn.005beec0
fld qword [esp + 0x74]
add esp, 0x10
fstp qword [esp]
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0xec]
push ecx
lea edx, [esp + 0xd0]
push edx
call fcn.005beec0
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x11c]
push edx
call fcn.004f99a0
fst qword [esp + 0x98]
fldz
add esp, 0x24
fucompp
fnstsw ax
test ah, 0x44
jp 0x58c46e
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x190], ecx
lea ecx, [esp + 0x18c]
mov dword [esp + 0x19c], edx
push ecx
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x1a0]
push edx
lea ecx, [esp + 0x31c]
mov dword [esp + 0x1a8], eax
call fcn.004f5440
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x258]
push ecx
lea ecx, [esp + 0x31c]
mov byte [esp + 0x488], 6
call fcn.004f5ce0
push eax
lea ecx, [esp + 0x260]
call fcn.005b98d0
fld qword [esp + 0x5c]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0xec]
push ecx
lea edx, [esp + 0x270]
push edx
call fcn.005beec0
fldz
fld qword [esp + 0x14c]
add esp, 0x18
fcom st(1)
fnstsw ax
fld qword [0x5ecc78]
test ah, 1
jne 0x58c38f
fadd st(1), st(0)
jmp 0x58c391
fsub st(1), st(0)
fld qword [esp + 0x12c]
fcom st(3)
fnstsw ax
fstp st(3)
test ah, 1
jne 0x58c3a7
faddp st(2)
jmp 0x58c3a9
fsubp st(2)
fxch st(1)
call fcn.005bd3f0
mov dword [esp + 0x1ac], eax
call fcn.005bd3f0
mov dword [esp + 0x1b0], eax
lea eax, [esp + 0x1ac]
push eax
mov ecx, esi
call fcn.00568b90
mov ebx, dword [esp + 0x2c]
mov ecx, edi
shl ecx, 4
add ecx, ebx
push esi
inc edi
call fcn.004f45a0
fldz
fld qword [esp + 0x124]
fcom st(1)
fnstsw ax
fld qword [0x5ecc78]
test ah, 1
jne 0x58c400
fadd st(1), st(0)
jmp 0x58c402
fsub st(1), st(0)
fld qword [esp + 0x11c]
fcom st(3)
fnstsw ax
fstp st(3)
test ah, 1
jne 0x58c418
faddp st(2)
jmp 0x58c41a
fsubp st(2)
fxch st(1)
call fcn.005bd3f0
mov dword [esp + 0x1bc], eax
call fcn.005bd3f0
lea ecx, [esp + 0x1bc]
push ecx
mov ecx, esi
mov dword [esp + 0x1c4], eax
call fcn.00568b90
mov ecx, edi
shl ecx, 4
add ecx, ebx
push esi
inc edi
call fcn.004f45a0
lea ecx, [esp + 0x314]
mov byte [esp + 0x480], 3
call fcn.004f54b0
inc dword [esp + 0x68]
jmp 0x58d502
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x288]
push edx
call fcn.005bef40
add esp, 0x10
push eax
lea ecx, [esp + 0xf0]
call fcn.005befe0
fldz
fld qword [esp + 0xf4]
fcom st(1)
fnstsw ax
fld qword [0x5ecc78]
test ah, 1
jne 0x58c4bf
fadd st(1), st(0)
jmp 0x58c4c1
fsub st(1), st(0)
fld qword [esp + 0xec]
fcom st(3)
fnstsw ax
fstp st(3)
test ah, 1
jne 0x58c4d7
faddp st(2)
jmp 0x58c4d9
fsubp st(2)
fxch st(1)
call fcn.005bd3f0
mov dword [esp + 0x144], eax
call fcn.005bd3f0
mov dword [esp + 0x148], eax
lea eax, [esp + 0x144]
push eax
mov ecx, esi
call fcn.00568b90
mov ebx, dword [esp + 0x58]
cmp ebx, dword [esp + 0x28]
jl 0x58c5b6
fldz
fcomp qword [esp + 0x74]
fnstsw ax
test ah, 0x41
jne 0x58c5b6
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1ec], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1f0], edx
mov edx, dword [esp + 0x6c]
push 0
mov dword [esp + 0x1ac], ecx
lea ecx, [esp + 0x1f0]
push ecx
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x154], edx
lea edx, [esp + 0x1ac]
push edx
mov dword [esp + 0x15c], eax
push ebx
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x2fc]
call fcn.00581210
push 1
mov ecx, esi
mov byte [esp + 0x484], 7
call fcn.00568ef0
sub ebx, dword [esp + 0x28]
lea ecx, [esp + 0x2e8]
mov dword [esi + 0xc], ebx
mov byte [esp + 0x480], 3
call fcn.00581260
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
push esi
inc edi
call fcn.004f45a0
inc dword [esp + 0x68]
jmp 0x58d502
lea ecx, [esp + 0x2bc]
push ecx
mov ecx, esi
call fcn.00568e10
lea edx, [esp + 0x2bc]
push edx
lea ecx, [esp + 0x344]
call fcn.004efe30
mov eax, dword [esp + 0x2dc]
mov edx, dword [esp + 0x360]
mov ebx, dword [esp + 0xd0]
and eax, 0xfffffff9
movzx eax, ax
xor ecx, ecx
test ax, ax
sete cl
and edx, 4
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c8]
mov dword [esp + 0x2e0], ebx
mov dword [esp + 0x2e4], ebx
mov dword [esp + 0xd4], eax
or cx, dx
mov word [esp + 0x360], cx
mov ecx, dword [esp + 0x2cc]
mov edx, 0x800
mov dword [esp + 0xd8], ecx
test word [esi + 0x32], dx
je 0x58c66c
mov eax, dword [esi + 0x34]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x3c], ecx
jmp 0x58c67a
mov edx, dword [esi + 0x44]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x48]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push 0
push ebx
mov dword [esp + 0x1d4], ecx
lea eax, [esp + 0x2c8]
push eax
lea ecx, [esp + 0x1d8]
push ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0x1e0], edx
call fcn.00582dc0
lea ecx, [esp + 0x80]
mov byte [esp + 0x480], 8
call fcn.00582da0
lea ecx, [esp + 0x290]
mov byte [esp + 0x480], 9
mov dword [esp + 0x94], ebx
call fcn.00514e60
push fcn.004eeaf0
push fcn.004ee1e0
push 2
push 0x24
lea edx, [esp + 0x3bc]
push edx
mov byte [esp + 0x494], 0xa
mov dword [esp + 0x2c8], ebx
mov dword [esp + 0x2cc], ebx
mov esi, 1
call fcn.005bd55c
push fcn.004eeaf0
push fcn.004ee1e0
push 2
push 0x24
lea eax, [esp + 0x374]
push eax
mov byte [esp + 0x494], 0xb
call fcn.005bd55c
mov byte [esp + 0x480], 0xc
test ebx, ebx
jne 0x58c983
mov ecx, dword [esp + 0x28]
lea edx, [ecx + ecx]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb4], edx
call fcn.00584cb0
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x2e0], eax
mov dword [esp + 0x2e4], eax
test si, si
jne 0x58c7c9
lea ecx, [esp + 0x3ac]
push ecx
lea ecx, [esp + 0x2c0]
call fcn.0051c9b0
mov edx, dword [esp + 0x2b8]
mov eax, dword [esp + 0x2b4]
push edx
push eax
lea ecx, [esp + 0x3b4]
push ecx
lea ecx, [esp + 0x2f4]
call fcn.00514e80
mov byte [esp + 0x480], 0xd
jmp 0x58c809
lea edx, [esp + 0x364]
push edx
lea ecx, [esp + 0x2c0]
call fcn.0051d1e0
mov eax, dword [esp + 0x2b8]
mov ecx, dword [esp + 0x2b4]
push eax
push ecx
lea edx, [esp + 0x36c]
push edx
lea ecx, [esp + 0x2f4]
call fcn.00514e80
mov byte [esp + 0x480], 0xe
push eax
lea ecx, [esp + 0x294]
call fcn.005193c0
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x480], 0xc
call fcn.00514eb0
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.004fa0c0
add esp, 8
test eax, eax
jne 0x58cd0c
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x298]
call fcn.004f19a0
test eax, eax
je 0x58c8f8
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
cmp eax, 2
jne 0x58c8c9
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004fca60
fstp qword [esp + 0x7c]
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004fca60
fcomp qword [esp + 0x84]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x58c8c9
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1dc]
mov dword [esp + 0x1e0], ecx
push edx
lea ecx, [esp + 0x294]
mov dword [esp + 0x1e0], eax
call fcn.004f11e0
jmp 0x58cd0c
cmp dword [esp + 0xb8], 3
je 0x58cd0c
mov eax, dword [esp + 0x294]
cmp eax, dword [esp + 0x8c]
jne 0x58c92a
mov ecx, dword [esp + 0x298]
cmp ecx, dword [esp + 0x90]
je 0x58cd0c
push 0
lea edx, [esp + 0x298]
push edx
lea eax, [esp + 0x2c8]
push eax
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x2f8]
call fcn.004ee640
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
push eax
mov byte [esp + 0x484], 0xf
call fcn.00568bc0
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x480], 0xc
call fcn.004eeaf0
add edi, 3
jmp 0x58cd0c
cmp dword [esp + 0x2d8], ebx
jle 0x58ce9c
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0xa0]
call fcn.00584cb0
cmp word [esp + 0x5c], 0
jne 0x58c9ee
lea eax, [esp + 0x3ac]
push eax
lea ecx, [esp + 0x2c0]
call fcn.0051c9b0
mov ecx, dword [esp + 0x2b8]
mov edx, dword [esp + 0x2b4]
push ecx
push edx
lea eax, [esp + 0x3b4]
push eax
lea ecx, [esp + 0x2f4]
call fcn.00514e80
mov byte [esp + 0x480], 0x10
jmp 0x58ca2e
lea ecx, [esp + 0x364]
push ecx
lea ecx, [esp + 0x2c0]
call fcn.0051d1e0
mov edx, dword [esp + 0x2b8]
mov eax, dword [esp + 0x2b4]
push edx
push eax
lea ecx, [esp + 0x36c]
push ecx
lea ecx, [esp + 0x2f4]
call fcn.00514e80
mov byte [esp + 0x480], 0x11
push eax
lea ecx, [esp + 0x294]
call fcn.005193c0
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x480], 0xc
call fcn.00514eb0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x298]
call fcn.004f19a0
test eax, eax
je 0x58ccf4
cmp eax, 1
jne 0x58cab3
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x344]
call fcn.004f2b60
test eax, eax
je 0x58ca91
xor esi, esi
jmp 0x58cc5c
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x164], edx
mov dword [esp + 0x168], eax
lea ecx, [esp + 0x164]
jmp 0x58cb41
cmp eax, 2
jne 0x58cb4e
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], edx
push ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x5c], eax
call fcn.004fca60
fstp qword [esp + 0x7c]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.004fca60
fcomp qword [esp + 0x84]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x58cb24
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1e4], edx
mov dword [esp + 0x1e8], eax
lea ecx, [esp + 0x1e4]
jmp 0x58cb41
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x174], edx
mov dword [esp + 0x178], eax
lea ecx, [esp + 0x174]
push ecx
lea ecx, [esp + 0x294]
call fcn.004f11e0
cmp word [esp + 0x5c], 0
lea ecx, [esp + 0x290]
jne 0x58cb98
lea edx, [esp + 0x364]
push edx
call fcn.0051d1e0
mov eax, dword [esp + 0x2e4]
mov ecx, dword [esp + 0x2e0]
push eax
push ecx
lea edx, [esp + 0x36c]
push edx
lea ecx, [esp + 0x2f4]
call fcn.00514e80
mov byte [esp + 0x480], 0x12
jmp 0x58cbd1
lea eax, [esp + 0x3ac]
push eax
call fcn.0051c9b0
mov ecx, dword [esp + 0x2e4]
mov edx, dword [esp + 0x2e0]
push ecx
push edx
lea eax, [esp + 0x3b4]
push eax
lea ecx, [esp + 0x2f4]
call fcn.00514e80
mov byte [esp + 0x480], 0x13
push eax
lea ecx, [esp + 0x2c0]
call fcn.005193c0
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x480], 0xc
call fcn.00514eb0
lea ecx, [esp + 0x294]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x58cc2c
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
jmp 0x58cc5c
mov edx, dword [esp + 0x294]
mov eax, dword [esp + 0x298]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
call fcn.00584b00
lea edx, [esp + 0x2c0]
push edx
lea eax, [esp + 0xac]
push eax
call fcn.004fa0c0
add esp, 8
test eax, eax
jne 0x58ccf0
mov ecx, dword [esp + 0x58]
push 1
push ecx
lea edx, [esp + 0x2c8]
push edx
lea eax, [esp + 0x2a0]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x328]
call fcn.004ee9e0
mov edx, dword [esp + 0x330]
sub edx, dword [esp + 0x28]
lea ecx, [esp + 0x314]
push edx
mov byte [esp + 0x484], 0x14
call fcn.004f0cf0
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea eax, [esp + 0x314]
push eax
call fcn.00568bc0
lea ecx, [esp + 0x314]
add edi, 3
mov byte [esp + 0x480], 0xc
call fcn.004eeaf0
test esi, esi
je 0x58cd08
lea eax, [esp + 0x2c0]
push eax
lea ecx, [esp + 0x344]
call fcn.004f11e0
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0xd4]
push 0
mov dword [esp + 0x1b8], ecx
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x1bc], edx
push ebx
lea edx, [esp + 0x1bc]
mov dword [esp + 0x144], eax
push edx
lea eax, [esp + 0x148]
mov dword [esp + 0x14c], ecx
push eax
lea ecx, [esp + 0x324]
call fcn.00582dc0
push eax
lea ecx, [esp + 0xa0]
mov byte [esp + 0x484], 0x15
call fcn.00585b40
lea ecx, [esp + 0x314]
mov byte [esp + 0x480], 0xc
call fcn.00582e50
mov dword [esp + 0x5c], 0
test ebx, ebx
jne 0x58cf65
mov ecx, dword [esp + 0x28]
lea edx, [ecx + ecx]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb4], edx
call fcn.00584cb0
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0xa4]
push edx
call fcn.004fa0c0
add esp, 8
mov esi, eax
lea eax, [esp + 0x40]
neg esi
push eax
lea ecx, [esp + 0x84]
sbb esi, esi
push ecx
lea ecx, [esp + 0x298]
neg esi
call fcn.004f19a0
test eax, eax
je 0x58cec9
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
cmp eax, 2
jne 0x58ce57
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004fca60
fstp qword [esp + 0x7c]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.004fca60
fcomp qword [esp + 0x84]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x58ce57
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x1d4]
push ecx
lea ecx, [esp + 0x294]
mov dword [esp + 0x1d8], edx
mov dword [esp + 0x1dc], eax
call fcn.004f1310
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea edx, [esp + 0x290]
push edx
call fcn.00568c30
jmp 0x58d44e
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0xa0]
call fcn.00584cb0
lea edx, [esp + 0x2bc]
push edx
lea ecx, [esp + 0x294]
call fcn.005193c0
jmp 0x58ccf4
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea eax, [esp + 0x290]
push eax
call fcn.00568c30
cmp dword [esp + 0xb8], 3
je 0x58d44e
test esi, esi
jne 0x58d44e
mov ecx, dword [esp + 0x84]
cmp ecx, dword [esp + 0x29c]
jne 0x58cf19
mov edx, dword [esp + 0x88]
cmp edx, dword [esp + 0x2a0]
je 0x58d44e
push 0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x2d0]
push ecx
lea edx, [esp + 0x2a8]
push edx
lea ecx, [esp + 0x2f8]
add edi, 3
call fcn.004ee640
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
push eax
mov byte [esp + 0x484], 0x16
call fcn.00568bc0
lea ecx, [esp + 0x2e8]
jmp 0x58d441
cmp dword [esp + 0x2d8], ebx
jle 0x58d3c7
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xa0]
call fcn.00584cb0
test si, si
jne 0x58cfcd
lea ecx, [esp + 0x3ac]
push ecx
lea ecx, [esp + 0x2c0]
call fcn.0051c9b0
mov edx, dword [esp + 0x2b8]
mov eax, dword [esp + 0x2b4]
push edx
push eax
lea ecx, [esp + 0x3b4]
push ecx
lea ecx, [esp + 0x2f4]
call fcn.00514e80
mov byte [esp + 0x480], 0x17
jmp 0x58d00d
lea edx, [esp + 0x364]
push edx
lea ecx, [esp + 0x2c0]
call fcn.0051d1e0
mov eax, dword [esp + 0x2b8]
mov ecx, dword [esp + 0x2b4]
push eax
push ecx
lea edx, [esp + 0x36c]
push edx
lea ecx, [esp + 0x2f4]
call fcn.00514e80
mov byte [esp + 0x480], 0x18
push eax
lea ecx, [esp + 0x294]
call fcn.005193c0
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x480], 0xc
call fcn.00514eb0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x298]
call fcn.004f19a0
test eax, eax
je 0x58d346
cmp eax, 1
jne 0x58d08f
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x344]
call fcn.004f2b60
test eax, eax
jne 0x58d23c
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x194], eax
mov dword [esp + 0x198], ecx
lea edx, [esp + 0x194]
jmp 0x58d11d
cmp eax, 2
jne 0x58d23c
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x40]
mov dword [esp + 0x50], eax
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x5c], ecx
call fcn.004fca60
fstp qword [esp + 0x7c]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.004fca60
fcomp qword [esp + 0x84]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x58d100
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1c8], ecx
lea edx, [esp + 0x1c4]
jmp 0x58d11d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], ecx
lea edx, [esp + 0x154]
push edx
lea ecx, [esp + 0x294]
call fcn.004f1310
test si, si
jne 0x58d171
lea eax, [esp + 0x364]
push eax
lea ecx, [esp + 0x294]
call fcn.0051d1e0
mov ecx, dword [esp + 0x2e4]
mov edx, dword [esp + 0x2e0]
push ecx
push edx
lea eax, [esp + 0x36c]
push eax
lea ecx, [esp + 0x320]
call fcn.00514e80
mov byte [esp + 0x480], 0x19
jmp 0x58d1b1
lea ecx, [esp + 0x3ac]
push ecx
lea ecx, [esp + 0x294]
call fcn.0051c9b0
mov edx, dword [esp + 0x2e4]
mov eax, dword [esp + 0x2e0]
push edx
push eax
lea ecx, [esp + 0x3b4]
push ecx
lea ecx, [esp + 0x320]
call fcn.00514e80
mov byte [esp + 0x480], 0x1a
push eax
lea ecx, [esp + 0x2c0]
call fcn.005193c0
lea ecx, [esp + 0x314]
mov byte [esp + 0x480], 0xc
call fcn.00514eb0
lea edx, [esp + 0x29c]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x58d20c
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
jmp 0x58d23c
mov ecx, dword [esp + 0x2a0]
mov eax, dword [esp + 0x29c]
lea edx, [esp + 0x9c]
mov dword [esp + 0x88], ecx
push edx
lea ecx, [esp + 0x84]
mov dword [esp + 0x88], eax
call fcn.00584b00
lea eax, [esp + 0x2bc]
push eax
lea ecx, [esp + 0x2ec]
call fcn.004f0c50
mov ebx, dword [esp + 0x28]
mov byte [esp + 0x480], 0x1b
test si, si
jne 0x58d26d
mov ecx, dword [esp + 0x2d8]
add ecx, ebx
push ecx
jmp 0x58d277
mov edx, dword [esp + 0x2d8]
sub edx, ebx
push edx
lea ecx, [esp + 0x2ec]
call fcn.004f0cf0
mov esi, dword [esp + 0x2c]
mov ecx, edi
lea eax, [esp + 0x2e8]
shl ecx, 4
push eax
add ecx, esi
call fcn.00568bc0
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x2cc]
push edx
add edi, 3
call fcn.004fa0c0
add esp, 8
test eax, eax
jne 0x58d337
mov eax, dword [esp + 0x58]
push 1
push eax
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x2a8]
push edx
lea eax, [esp + 0x2d8]
push eax
lea ecx, [esp + 0x328]
call fcn.004ee9e0
mov ecx, dword [esp + 0x330]
sub ecx, ebx
push ecx
lea ecx, [esp + 0x318]
mov byte [esp + 0x484], 0x1c
call fcn.004f0cf0
mov ecx, edi
lea edx, [esp + 0x314]
shl ecx, 4
push edx
add ecx, esi
call fcn.00568bc0
lea ecx, [esp + 0x314]
mov byte [esp + 0x480], 0x1b
call fcn.004eeaf0
lea ecx, [esp + 0x2e8]
jmp 0x58d441
sub edi, 3
lea ecx, [esp + 0x2e8]
jmp 0x58d441
lea eax, [esp + 0x2bc]
push eax
lea ecx, [esp + 0x2ec]
call fcn.004f0c50
test si, si
mov esi, dword [esp + 0x28]
mov byte [esp + 0x480], 0x1d
jne 0x58d377
mov ecx, dword [esp + 0x2d8]
add ecx, esi
push ecx
jmp 0x58d381
mov edx, dword [esp + 0x2d8]
sub edx, esi
push edx
lea ecx, [esp + 0x2ec]
call fcn.004f0cf0
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea eax, [esp + 0x2e8]
push eax
call fcn.00568bc0
push 1
push esi
lea ecx, [esp + 0xa4]
call fcn.004f55c0
test eax, eax
je 0x58d3be
mov dword [esp + 0x5c], 1
lea ecx, [esp + 0x2e8]
jmp 0x58d441
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0xa0]
call fcn.00584cb0
lea edx, [esp + 0x2bc]
push edx
lea ecx, [esp + 0x3fc]
call fcn.004f0c50
mov byte [esp + 0x480], 0x1e
test si, si
jne 0x58d40c
mov eax, dword [esp + 0x2d8]
mov ecx, dword [esp + 0x28]
add eax, ecx
push eax
jmp 0x58d418
mov edx, dword [esp + 0x2d8]
sub edx, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x3fc]
call fcn.004f0cf0
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea eax, [esp + 0x3f8]
push eax
call fcn.00568bc0
lea ecx, [esp + 0x3f8]
mov byte [esp + 0x480], 0xc
call fcn.004eeaf0
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd8]
add dword [esp + 0x68], 3
add edi, 3
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
je 0x58d48a
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea eax, [esp + 0xa0]
push eax
inc edi
call fcn.00568b90
push fcn.004eeaf0
push 2
push 0x24
lea ecx, [esp + 0x370]
push ecx
mov byte [esp + 0x490], 0xb
call fcn.005bd4f9
push fcn.004eeaf0
push 2
push 0x24
lea edx, [esp + 0x3b8]
push edx
mov byte [esp + 0x490], 0xa
call fcn.005bd4f9
lea ecx, [esp + 0x290]
mov byte [esp + 0x480], 9
call fcn.00514eb0
lea ecx, [esp + 0x80]
mov byte [esp + 0x480], 8
call fcn.00582e50
lea ecx, [esp + 0x9c]
mov byte [esp + 0x480], 3
call fcn.00582e50
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x30], eax
jne 0x58d516
cmp dword [esp + 0x34], ecx
je 0x58d51e
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0xb8]
jl 0x58bda0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
mov dword [edx], ecx
lea ecx, [esp + 0x340]
mov dword [eax], edi
mov byte [esp + 0x480], 2
call fcn.004eeaf0
lea ecx, [esp + 0x41c]
mov byte [esp + 0x480], 0
call fcn.004eeaf0
lea ecx, [esp + 0x2bc]
mov dword [esp + 0x480], 0xffffffff
call fcn.00514eb0
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.005bd2c6
mov esp, ebp
pop ebp
ret