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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b2280
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x616040]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x18]
push 1
mov dword [esp + 0xc0], edi
mov dword [esp + 0x8c], esi
call fcn.0041027a
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0xd0], eax
call fcn.0040a670
mov dword [esp + 0x160], 0
lea ecx, [esp + 0xfc]
fld1
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebx + 0x1c]
fst qword [ebx + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 4]
sub eax, dword [esi]
push ecx
sar eax, 2
lea ecx, [esp + 0x74]
push eax
fstp qword [esp + 0x104]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call fcn.0040b6a0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x164], 2
call fcn.0040afe0
xor eax, eax
mov byte [esp + 0x1b], 0
or ecx, 0xffffffff
mov dword [esp + 0xa0], 0
mov dword [esp + 0x90], ecx
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov byte [esp + 0x160], 3
mov esi, dword [ebx + 0x38]
test esi, esi
js 0x581485
add esi, dword [ebp + 0x10]
jmp 0x581487
neg esi
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x98], esi
mov dword [esp + 0x2c], esi
test ecx, ecx
js 0x5814b0
mov eax, dword [ebp + 0x14]
add eax, eax
sub eax, dword [esp + 0xcc]
add eax, ecx
mov dword [esp + 0x9c], eax
jmp 0x5814b9
neg ecx
mov dword [esp + 0x9c], ecx
mov edi, dword [ebx]
cmp edi, dword [ebx + 4]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x8c], edi
je 0x58203b
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x58], ebx
jmp 0x5814f0
cmp dword [edi + 0x10], 0xfa0
jne 0x58200c
mov esi, dword [edi]
cmp esi, 0xd57
jne 0x5818e6
mov ecx, dword [esp + 0x30]
mov eax, edx
mov esi, dword [edi + 0x1c]
sub eax, ecx
sub esi, dword [edi + 0x18]
sar esi, 2
sar eax, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], ecx
cmp eax, esi
jae 0x581551
cmp esi, 0x3fffffff
ja 0x582025
push esi
lea ecx, [esp + 0x34]
call fcn.00404ca0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
mov esi, dword [edi + 0x18]
cmp esi, dword [edi + 0x1c]
je 0x581726
lea ecx, [ecx]
mov eax, dword [esi]
mov dword [esp + 0x4c], eax
test eax, eax
js 0x5815e4
lea ecx, [eax*4]
mov dword [esp + 0x114], 0
mov eax, 0x92492493
mov dword [esp + 0x118], 0
imul ecx
mov dword [esp + 0x120], 0
add edx, ecx
mov ecx, dword [esp + 0x10]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x114]
push eax
mov eax, dword [ecx + 0x18]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [esp + 0x11c]
sub ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x4c]
cmp eax, ecx
jg 0x5815dc
mov eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x94]
mov dword [esp + 0x94], eax
cmp edx, ecx
jae 0x581699
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x20]
ja 0x581699
lea eax, [esp + 0x94]
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 2
mov dword [esp + 0x24], eax
cmp ecx, edx
jne 0x58168c
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x581688
sub ecx, dword [esp + 0x30]
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x582025
sub edx, dword [esp + 0x30]
inc ecx
sar edx, 2
mov eax, 0x3fffffff
mov dword [esp + 0x20], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x581666
xor edx, edx
jmp 0x581668
add edx, ecx
mov eax, dword [esp + 0x20]
cmp edx, eax
jae 0x581672
mov edx, eax
push edx
lea ecx, [esp + 0x34]
call fcn.00404ca0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
test ecx, ecx
je 0x58170f
mov edx, dword [esp + 0x30]
mov eax, dword [edx + eax*4]
jmp 0x58170d
mov edx, dword [esp + 0x28]
cmp ecx, edx
jne 0x581709
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x581705
sub ecx, dword [esp + 0x30]
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x582025
sub edx, dword [esp + 0x30]
inc ecx
sar edx, 2
mov eax, 0x3fffffff
mov dword [esp + 0x20], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x5816e3
xor edx, edx
jmp 0x5816e5
add edx, ecx
mov eax, dword [esp + 0x20]
cmp edx, eax
jae 0x5816ef
mov edx, eax
push edx
lea ecx, [esp + 0x34]
call fcn.00404ca0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
test ecx, ecx
je 0x58170f
mov dword [ecx], eax
add ecx, 4
add esi, 4
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ecx
cmp esi, dword [edi + 0x1c]
jne 0x581560
mov edi, dword [esp + 0x30]
mov eax, ecx
sub eax, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
xor esi, esi
add eax, 3
mov edx, edi
shr eax, 2
cmp ecx, edi
sbb edi, edi
not edi
and edi, eax
mov dword [esp + 0x4c], edi
mov eax, edi
mov edi, dword [esp + 0x8c]
je 0x581774
mov eax, esi
lea ecx, [ecx]
add eax, dword [edx]
lea edx, [edx + 4]
inc esi
cmp esi, dword [esp + 0x4c]
jne 0x581760
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x1c], 0
jle 0x5817e8
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x7c], 0
test eax, eax
je 0x5817e4
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x7c]
sar eax, 2
dec eax
mov dword [esp + 0x3c], eax
jmp 0x5817b0
imul eax, dword [ebp + 0x10]
lea ecx, [ecx + 4]
mov edx, dword [esp + 0x10]
inc ebx
mov edx, dword [edx + 0x1c]
sub edx, eax
imul edx, dword [ecx - 4]
mov eax, edx
cdq
idiv esi
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x3c]
cmp ebx, edi
jne 0x5817b0
mov edi, dword [esp + 0x8c]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
test eax, eax
jns 0x5818c1
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x124]
push ecx
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x12c]
add eax, eax
sub ecx, eax
xor eax, eax
sub ecx, dword [esp + 0x124]
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], eax
lea eax, [esp + 0x134]
push 0x17
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x18]
push 1
call fcn.004101df
cmp dword [esp + 0x140], 0
jle 0x582000
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [esp + 0x14]
sub esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x48], esi
jmp 0x582000
cmp dword [esp + 0x14], eax
jge 0x582004
mov esi, dword [esp + 0x20]
sar esi, 2
dec esi
imul esi, dword [ebp + 0x10]
add esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x48], esi
jmp 0x582004
mov edx, dword [esp + 0x30]
xor eax, eax
sub ecx, edx
sar ecx, 2
cmp ecx, dword [esp + 0xa0]
setle al
dec eax
and eax, dword [esp + 0xa0]
cmp ecx, eax
jbe 0x582031
cmp dword [esp + 0xa0], 0
mov edx, dword [edx + eax*4]
mov dword [esp + 0x24], edx
je 0x581928
lea eax, [ecx - 1]
cmp dword [esp + 0xa0], eax
jne 0x581943
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0xb0]
sar eax, 2
imul eax, dword [ebp + 0x10]
neg eax
lea edx, [edx + eax*2]
mov dword [esp + 0x24], edx
mov ecx, edi
cmp esi, 0x339f
jne 0x58195d
mov eax, dword [esp + 0x10]
push dword [eax + 0x20]
lea eax, [esp + 0x110]
jmp 0x58196b
push dword [esp + 0xac]
lea eax, [esp + 0x108]
push edx
push eax
call fcn.0057c1d0
mov edx, dword [edi]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], esi
cmp edx, 0xd70
jne 0x581994
mov eax, dword [edi + 0x34]
test eax, eax
jle 0x581994
mov dword [esp + 0x54], eax
cmp dword [esp + 0xa0], 0
jne 0x581a32
cmp esi, dword [esp + 0x24]
jne 0x581a32
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0x58]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x581a32
mov ebx, dword [esp + 0x10]
mov edi, edi
cmp dword [eax + 0x10], 0xfa0
je 0x5819d1
add eax, 0x58
cmp eax, dword [ebx + 4]
jne 0x5819c0
mov ebx, dword [esp + 0x58]
cmp eax, ecx
je 0x581a32
cmp dword [eax], 0xd48
jne 0x581a32
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
test eax, eax
jns 0x581a10
cmp dword [esp + 0x5c], 0
jle 0x581a0e
mov ebx, dword [esp + 0x5c]
lea eax, [ecx + ecx]
mov dword [esp + 0x14], ebx
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x48], eax
test eax, eax
jle 0x581a32
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0xb0]
mov esi, dword [esp + 0x14]
sar eax, 2
imul eax, ecx
lea eax, [eax + eax*2]
add eax, eax
sub esi, eax
mov dword [esp + 0x50], esi
cmp edx, 0xd69
jne 0x581a58
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
sub eax, ecx
sar eax, 2
cmp eax, 2
jbe 0x582031
mov eax, dword [ecx + 8]
mov dword [esp + 0x90], eax
cmp dword [esp + 0xa0], 1
jne 0x581a96
cmp esi, dword [esp + 0x24]
jne 0x581a96
cmp dword [edi - 0x58], 0xd5d
jne 0x581a96
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0xb0]
mov esi, dword [esp + 0x14]
sar eax, 2
imul eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
add eax, eax
sub esi, eax
sub esi, dword [esp + 0x2c]
mov dword [esp + 0x50], esi
cmp edx, 0xd59
je 0x581aba
cmp edx, 0xd5b
je 0x581aba
cmp edx, 0xd5c
je 0x581aba
cmp edx, 0xd68
jne 0x581b73
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp edi, eax
je 0x581b31
mov eax, dword [edi - 0x58]
cmp eax, 0xd4f
je 0x581adc
cmp eax, 0xd6e
je 0x581adc
cmp eax, 0xd6f
jne 0x581b31
mov eax, dword [edi - 0x3c]
mov edx, dword [edi - 0x40]
sub eax, edx
sar eax, 2
test eax, eax
je 0x582031
mov edx, dword [edx]
mov ecx, dword [edi - 0x2c]
call fcn.00588d30
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi - 0x40]
add ecx, eax
mov eax, dword [edi - 0x3c]
sub eax, edx
mov dword [esp + 0x2c], ecx
sar eax, 2
mov dword [esp + 0x98], ecx
test eax, eax
je 0x582031
mov edx, dword [edx]
mov ecx, dword [edi - 0x2c]
call fcn.00588d30
mov edx, dword [esp + 0x10]
sub esi, eax
mov dword [esp + 0x50], esi
lea ecx, [edi + 0x58]
cmp ecx, dword [edx + 4]
je 0x581b77
mov eax, dword [ecx]
cmp eax, 0xd4f
je 0x581b50
cmp eax, 0xd6e
je 0x581b50
cmp eax, 0xd6f
jne 0x581b77
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
sub eax, edx
sar eax, 2
test eax, eax
je 0x582031
mov edx, dword [edx]
mov ecx, dword [ecx + 0x2c]
call fcn.00588d30
sub esi, eax
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp edi, eax
je 0x581b9f
cmp dword [edi], 0xd58
je 0x581b9f
cmp edi, eax
je 0x581b9f
cmp dword [edi - 0x58], 0xd49
jne 0x581b9f
mov eax, dword [edi - 0x44]
imul eax, dword [ebp + 0x10]
sub esi, eax
mov dword [esp + 0x50], esi
mov eax, dword [edi]
cmp eax, 0xd4a
jne 0x581bad
mov byte [esp + 0x1b], 1
cmp eax, 0xd50
je 0x581bbf
cmp eax, 0xd52
je 0x581bbf
xor eax, eax
jmp 0x581bc4
mov eax, 1
test eax, eax
je 0x581d0f
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], ecx
mov eax, dword [esp + 0x10]
mov esi, edi
mov byte [esp + 0x160], 4
cmp edi, dword [eax + 4]
je 0x581cca
mov ebx, eax
lea esp, [esp]
cmp dword [esi + 0x10], 0xfa0
jne 0x581cb3
mov eax, dword [esi]
cmp eax, 0xd50
je 0x581c49
cmp eax, 0xd52
jne 0x581c4e
inc ecx
mov dword [esp + 0x24], ecx
cmp eax, 0xd51
je 0x581c5c
cmp eax, 0xd53
jne 0x581c61
dec ecx
mov dword [esp + 0x24], ecx
cmp eax, 0xd51
je 0x581c6f
cmp eax, 0xd53
jne 0x581c73
test ecx, ecx
je 0x581cbf
push dword [esp + 0xec]
lea eax, [esp + 0xd4]
mov ecx, esi
push 0
push eax
call fcn.0057c1d0
push dword [ebp + 0x14]
lea eax, [esp + 0xdc]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [esp + 0xdc]
push dword [esp + 0xdc]
push esi
push eax
call fcn.005823b0
mov ecx, dword [esp + 0x24]
add esi, 0x58
cmp esi, dword [ebx + 4]
jne 0x581c30
mov edx, dword [esp + 0xf0]
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0xb0]
mov esi, dword [esp + 0x14]
sar eax, 2
imul eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
add eax, eax
sub esi, eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
mov byte [esp + 0x160], 3
test edx, edx
je 0x581d0b
push edx
call fcn.0040d533
add esp, 4
mov edx, dword [esp + 0x10]
cmp byte [esp + 0x1b], 0
jne 0x581e02
test esi, esi
jle 0x581e02
mov eax, dword [edi + 0x30]
cmp esi, eax
jge 0x581e02
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fstp qword [esp + 0x3c]
fld qword [esp + 0x3c]
fild dword [esp + 0x50]
fstp qword [esp + 0x3c]
fdiv qword [esp + 0x3c]
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
sub eax, ebx
mov esi, dword [esp + 0xa0]
sar eax, 3
mov dword [esp + 0x58], ebx
mov dword [esp + 0x3c], eax
fst qword [esp + 0x7c]
cmp esi, eax
jge 0x581dd1
cmp dword [edx + 0x1c], 0
jle 0x581d80
cmp eax, esi
jbe 0x58202f
fstp qword [ebx + esi*8]
jmp 0x581de3
cmp esi, eax
jge 0x581dd1
mov ecx, edx
fstp st(0)
call fcn.0057f7d0
test al, al
je 0x581dc9
cmp dword [esp + 0x3c], esi
jbe 0x582031
fld qword [esp + 0x7c]
fcom qword [ebx + esi*8]
fnstsw ax
test ah, 5
jp 0x581dc2
push esi
lea ecx, [esp + 0x74]
fstp st(0)
call fcn.0040b400
fld qword [eax]
fld qword [esp + 0x7c]
fxch st(1)
fstp qword [ebx + esi*8]
jmp 0x581dcd
fld st(0)
fstp qword [ebx + esi*8]
jmp 0x581dcd
fld qword [esp + 0x7c]
mov edx, dword [esp + 0x10]
fcom qword [edx + 0x50]
fnstsw ax
test ah, 5
jp 0x581de0
fstp st(0)
fld qword [edx + 0x50]
fstp qword [edx + 0x50]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov ecx, dword [edi]
mov dword [esp + 0x7c], ecx
lea eax, [ecx - 0xd4b]
cmp eax, 0x24
ja case.0x581e1a.3403
movzx eax, byte [eax + 0x582388]
jmp dword [eax*4 + 0x58237c]
lea eax, [edi + 0x58]
cmp eax, dword [edx + 4]
je case.0x581e1a.3403
cmp dword [eax], 0xd48
je case.0x581e1a.3403
cmp dword [eax + 0x10], 0xfa0
mov eax, dword [ebp + 0x10]
jne 0x581e57
mov ebx, dword [esp + 0x2c]
sub ebx, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x98], ebx
mov ebx, dword [esp + 0x58]
jmp 0x581e57
mov eax, dword [ebp + 0x10]
cmp ecx, 0xd48
jne 0x581e86
cmp byte [esp + 0x1b], 0
jne 0x581e81
mov ecx, dword [esp + 0x2c]
add eax, eax
sub ecx, eax
sub ecx, dword [edx + 0x38]
cmp dword [esp + 0x14], ecx
jg 0x581e81
mov eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0x1b], 0
mov ecx, dword [edx + 4]
mov eax, 0x2e8ba2e9
sub ecx, edi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x581ef5
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2c]
add eax, eax
sub ecx, eax
mov eax, dword [esp + 0x10]
sub ecx, dword [eax + 0x38]
mov dword [esp + 0x3c], ecx
fild dword [esp + 0x3c]
fstp qword [esp + 0x3c]
fld qword [esp + 0x3c]
fdiv qword [eax + 0x50]
call fcn.0052eaa0
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x58], ebx
cmp eax, dword [esp + 0x14]
jle 0x581eed
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x7c], 0xd50
jne 0x581f12
mov ecx, dword [esp + 0x5c]
mov eax, dword [edi + 0x30]
mov dword [esp + 0x5c], ecx
cmp ecx, eax
jg 0x581f12
mov dword [esp + 0x5c], eax
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x9c]
push dword [ebp + 0x10]
push dword [esp + 0x5c]
push esi
push edi
push eax
call fcn.005823b0
mov eax, dword [edi]
cmp eax, 0xd50
je 0x581f3f
cmp eax, 0xd52
jne 0x581fb7
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x50]
cmp eax, edx
jae 0x581f8d
mov ecx, eax
mov eax, dword [esp + 0x64]
cmp eax, ecx
ja 0x581f8d
mov esi, ecx
sub esi, eax
sar esi, 3
cmp edx, dword [esp + 0x6c]
jne 0x581f70
push ecx
lea ecx, [esp + 0x68]
call fcn.0040b110
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
test edx, edx
je 0x581f84
mov eax, dword [ecx + esi*8]
mov dword [edx], eax
mov eax, dword [ecx + esi*8 + 4]
mov dword [edx + 4], eax
add edx, 8
mov dword [esp + 0x68], edx
jmp 0x581fbb
cmp edx, dword [esp + 0x6c]
jne 0x581fa1
push ecx
lea ecx, [esp + 0x68]
call fcn.0040b110
mov edx, dword [esp + 0x68]
test edx, edx
je 0x581fae
mov eax, dword [esp + 0x54]
mov dword [edx], esi
mov dword [edx + 4], eax
add edx, 8
mov dword [esp + 0x68], edx
jmp 0x581fbb
mov edx, dword [esp + 0x68]
mov eax, dword [edi]
cmp eax, 0xd51
je 0x581fe3
cmp eax, 0xd53
je 0x581fe3
mov eax, dword [esp + 0xb4]
mov esi, dword [esp + 0x98]
mov dword [esp + 0x60], eax
mov dword [esp + 0x2c], esi
jmp 0x582000
mov eax, dword [esp + 0xb4]
sub edx, 8
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x68], edx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
add edi, 0x58
mov dword [esp + 0x8c], edi
cmp edi, dword [eax + 4]
jne 0x5814f0
mov esi, dword [esp + 0x1c]
jmp 0x58203f
push str.vector_T__too_long
call fcn.00546d3a
fstp st(0)
push str.invalid_vector_T__subscript
call fcn.00546d68
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x14], ecx
jg 0x582051
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x1c], 0
jle 0x582136
cmp ebx, dword [esp + 0x74]
je 0x5820b7
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x582070
mov esi, eax
mov eax, dword [esp + 0x88]
sar esi, 3
mov edi, dword [eax]
mov eax, dword [eax + 4]
sub eax, edi
sar eax, 2
cmp eax, esi
jbe 0x582031
fild dword [edi + esi*4]
fstp qword [esp + 0x3c]
fld qword [esp + 0x3c]
fmul qword [ebx]
call fcn.0052eaa0
mov dword [edi + esi*4], eax
add ebx, 8
mov eax, dword [esp + 0x20]
add eax, 8
mov dword [esp + 0x20], eax
cmp ebx, dword [esp + 0x74]
jne 0x582070
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x88]
xor edi, edi
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov ecx, eax
sub ecx, esi
mov edx, ecx
add ecx, 3
sar edx, 2
dec edx
shr ecx, 2
imul edx, dword [ebp + 0x10]
cmp eax, esi
sbb eax, eax
not eax
mov dword [esp + 0x20], edx
and eax, ecx
je 0x5820f5
add edx, dword [esi]
lea esi, [esi + 4]
inc edi
cmp edi, eax
jne 0x5820e7
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x14]
cmp edx, eax
jle 0x582272
test eax, eax
je 0x582272
fild dword [esp + 0x20]
mov esi, dword [esp + 0x10]
fstp qword [esp + 0x3c]
fld qword [esp + 0x3c]
fild dword [esp + 0x48]
fstp qword [esp + 0x3c]
fdiv qword [esp + 0x3c]
mov ebx, dword [esp + 0x70]
mov eax, dword [0x621a6c]
fstp qword [esi + 0x50]
jmp 0x58227b
xor ecx, ecx
cmp dword [eax + 0x68], 0x9fbf1
jne 0x582146
mov ecx, 1
mov eax, dword [0x621a6c]
test eax, eax
je 0x582277
push 0x10002
push dword [ecx*4 + 0x621ebc]
call eax
cmp eax, 0xd0e
jne 0x582272
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xc4]
call fcn.0040a670
mov byte [esp + 0x160], 5
xor edi, edi
sub esi, dword [esp + 0x30]
sar esi, 2
test esi, esi
jle 0x5821f6
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ecx
cmp eax, edi
jbe 0x582031
mov eax, dword [esp + 0x74]
sub eax, ebx
sar eax, 3
cmp eax, edi
jbe 0x582031
fild dword [ecx + edi*4]
fstp qword [esp + 0x7c]
fld qword [esp + 0x7c]
mov ebx, dword [esp + 0x70]
fmul qword [ebx + edi*8]
call fcn.0052eaa0
mov ecx, dword [esp + 0x20]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jge 0x5821f6
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0x3c]
jmp 0x5821a9
mov edx, dword [esp + 0xc4]
xor edi, edi
mov esi, dword [esp + 0xc0]
mov ecx, edx
sub ecx, esi
mov eax, ecx
sar eax, 2
dec eax
imul eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [ecx + 3]
shr eax, 2
cmp edx, esi
sbb edx, edx
not edx
and edx, eax
mov eax, dword [esp + 0x14]
je 0x58223e
lea esp, [esp]
add eax, dword [esi]
lea esi, [esi + 4]
inc edi
cmp edi, edx
jne 0x582230
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xc0]
push eax
call fcn.0040ae70
mov byte [esp + 0x160], 3
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x582272
push eax
call fcn.0040d533
add esp, 4
mov eax, dword [0x621a6c]
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x1c], 0
jg 0x5822b0
xor ecx, ecx
cmp dword [esi + 0x68], 0x9fbf1
jne 0x582291
mov ecx, 1
test eax, eax
je 0x5822b0
push 0x10002
push dword [ecx*4 + 0x621ebc]
call eax
cmp eax, 0xd0e
jne 0x5822b0
mov eax, dword [esp + 0x14]
jmp 0x5822c8
fild dword [esp + 0x48]
fstp qword [esp + 0x3c]
fld qword [esp + 0x3c]
fmul qword [esi + 0x50]
call fcn.0052eaa0
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0xbc]
mov dword [edi], eax
mov ecx, dword [esi + 0x20]
mov esi, dword [esp + 0x9c]
add esi, dword [esp + 0xcc]
cmp esi, ecx
jg 0x5822e8
mov esi, ecx
mov eax, dword [esp + 0x90]
mov dword [edi + 4], esi
test eax, eax
jle 0x58230f
mov ecx, dword [edi]
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
lea eax, [ecx + 0xa]
cdq
idiv dword [esp + 0x90]
add eax, esi
mov dword [edi + 4], eax
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x582323
push eax
call fcn.0040d533
add esp, 4
mov eax, dword [esp + 0x64]
test eax, eax
je 0x582334
push eax
call fcn.0040d533
add esp, 4
test ebx, ebx
je 0x582341
push ebx
call fcn.0040d533
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x582352
push eax
call fcn.0040d533
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00527e5c
mov esp, ebp
pop ebp
ret 0x10