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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5afc17
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x614040]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x614040]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x18]
push 1
mov dword [esp + 0xac], esi
mov dword [esp + 0x6c], edi
call fcn.00410198
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0xa8], eax
call fcn.0040a670
mov dword [esp + 0x140], 0
lea ecx, [esp + 0xdc]
fld1
mov dword [esi], 0
mov dword [esi + 4], 0
mov esi, dword [ebx + 0x1c]
fst qword [ebx + 0x50]
mov eax, dword [edi + 4]
sub eax, dword [edi]
push ecx
sar eax, 2
lea ecx, [esp + 0x9c]
push eax
fstp qword [esp + 0xe4]
mov dword [esp + 0x20], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
call fcn.0040b670
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
push dword [esp + 0xa8]
lea ecx, [esp + 0x50]
mov byte [esp + 0x144], 2
call fcn.0040afe0
xor eax, eax
mov byte [esp + 0x1f], 0
mov dword [esp + 0xac], 0xffffffff
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov byte [esp + 0x140], 3
mov edx, dword [ebx + 0x38]
test edx, edx
js 0x58019f
add edx, dword [ebp + 0x10]
jmp 0x5801a1
neg edx
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x74], edx
mov dword [esp + 0x28], edx
test ecx, ecx
js 0x5801c4
mov eax, dword [ebp + 0x14]
add eax, eax
sub eax, dword [esp + 0xa4]
add eax, ecx
mov dword [esp + 0x78], eax
jmp 0x5801ca
neg ecx
mov dword [esp + 0x78], ecx
mov edi, dword [ebx]
mov dword [esp + 0x64], edi
cmp edi, dword [ebx + 4]
je 0x580579
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], esi
lea esp, [esp]
cmp dword [edi + 0x10], 0xfa0
jne 0x580561
mov edx, dword [edi]
cmp edx, 0xd57
jne 0x580747
mov ebx, dword [esp + 0x3c]
mov eax, esi
mov ecx, dword [edi + 0x1c]
sub eax, ebx
sub ecx, dword [edi + 0x18]
sar ecx, 2
sar eax, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x40], ebx
cmp eax, ecx
jae 0x580251
cmp ecx, 0x3fffffff
ja 0x580e33
push ecx
lea ecx, [esp + 0x40]
call fcn.00404c50
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov esi, dword [edi + 0x18]
cmp esi, dword [edi + 0x1c]
je 0x5803fb
lea ecx, [ecx]
mov eax, dword [esi]
mov dword [esp + 0x14], eax
test eax, eax
js 0x5802e6
lea ecx, [eax*4]
mov dword [esp + 0x104], 0
mov eax, 0x92492493
mov dword [esp + 0x108], 0
imul ecx
mov dword [esp + 0x110], 0
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10c], eax
lea eax, [esp + 0x104]
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x18]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [esp + 0x10c]
sub ecx, dword [esp + 0x104]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jle 0x5802e0
mov dword [esp + 0x14], eax
jmp 0x5802e6
mov eax, ecx
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], eax
cmp ecx, ebx
jae 0x58037a
cmp edx, ecx
ja 0x58037a
mov eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, edx
sar eax, 2
mov dword [esp + 0x24], eax
cmp ebx, ecx
jne 0x580371
mov eax, ecx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x58036d
sub ebx, edx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x580e33
sub ecx, edx
mov eax, 0x3fffffff
sar ecx, 2
inc ebx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x58034b
xor ecx, ecx
jmp 0x58034d
add ecx, edx
cmp ecx, ebx
jae 0x580353
mov ecx, ebx
push ecx
lea ecx, [esp + 0x40]
call fcn.00404c50
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
test ebx, ebx
je 0x5803e4
mov eax, dword [edx + eax*4]
jmp 0x5803e2
mov ecx, dword [esp + 0x20]
cmp ebx, ecx
jne 0x5803de
mov eax, ecx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x5803da
sub ebx, edx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x580e33
sub ecx, edx
mov eax, 0x3fffffff
sar ecx, 2
inc ebx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x5803bc
xor ecx, ecx
jmp 0x5803be
add ecx, edx
cmp ecx, ebx
jae 0x5803c4
mov ecx, ebx
push ecx
lea ecx, [esp + 0x40]
call fcn.00404c50
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
test ebx, ebx
je 0x5803e4
mov dword [ebx], eax
add ebx, 4
add esi, 4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], ebx
cmp esi, dword [edi + 0x1c]
jne 0x580260
mov edi, dword [esp + 0x3c]
mov eax, ebx
sub eax, edi
xor esi, esi
mov dword [esp + 0x60], eax
xor edx, edx
add eax, 3
mov ecx, edi
shr eax, 2
cmp ebx, edi
sbb edi, edi
not edi
and edi, eax
mov dword [esp + 0x24], edi
mov eax, edi
mov edi, dword [esp + 0x64]
je 0x580431
add esi, dword [ecx]
lea ecx, [ecx + 4]
inc edx
cmp edx, eax
jne 0x580427
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x1c], 0
jle 0x58048d
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x70], 0
test eax, eax
je 0x58048d
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x70]
sar eax, 2
dec eax
mov dword [esp + 0x2c], eax
nop
imul eax, dword [ebp + 0x10]
lea ecx, [ecx + 4]
mov edx, dword [edx + 0x1c]
inc ebx
sub edx, eax
imul edx, dword [ecx - 4]
mov eax, edx
cdq
idiv esi
mov edx, dword [esp + 0x10]
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x2c]
cmp ebx, edi
jne 0x580460
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x14]
test esi, esi
jns 0x580722
lea eax, [esp + 0xf4]
mov dword [esp + 0xf4], 0
push eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x10]
mov esi, dword [esp + 0xfc]
add eax, eax
sub esi, eax
xor eax, eax
sub esi, dword [esp + 0xf4]
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
lea eax, [esp + 0x114]
push 0x17
push eax
mov eax, dword [esp + 0x18]
push 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x54], esi
mov ecx, dword [eax + 0x18]
call fcn.004100fd
cmp dword [esp + 0x120], 0
jle 0x580559
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add edi, 0x58
mov dword [esp + 0x64], edi
cmp edi, dword [eax + 4]
jne 0x5801f0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
cmp esi, eax
jg 0x580589
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
cmp dword [ebx + 0x1c], 0
jle 0x58065d
mov esi, dword [esp + 0x98]
cmp esi, dword [esp + 0x9c]
je 0x5805fb
xor eax, eax
mov dword [esp + 0x60], eax
lea esp, [esp]
mov edi, eax
mov eax, dword [esp + 0x68]
sar edi, 3
mov ebx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ebx
sar eax, 2
cmp eax, edi
jbe 0x580e3f
fild dword [ebx + edi*4]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fmul qword [esi]
call fcn.0052ea70
mov dword [ebx + edi*4], eax
add esi, 8
mov eax, dword [esp + 0x60]
add eax, 8
mov dword [esp + 0x60], eax
cmp esi, dword [esp + 0x9c]
jne 0x5805b0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x68]
xor edi, edi
mov eax, dword [esi + 4]
mov ecx, eax
mov esi, dword [esi]
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 + 0x68], edx
and eax, ecx
je 0x580636
add edx, dword [esi]
lea esi, [esi + 4]
inc edi
cmp edi, eax
jne 0x580628
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x18]
cmp edx, eax
jle 0x58065d
test eax, eax
je 0x58065d
fild dword [esp + 0x68]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fild dword [esp + 0x48]
fstp qword [esp + 0x2c]
fdiv qword [esp + 0x2c]
fstp qword [ebx + 0x50]
fild dword [esp + 0x48]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fmul qword [ebx + 0x50]
call fcn.0052ea70
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0x78]
add esi, dword [esp + 0xa4]
mov dword [edi], eax
mov ecx, dword [ebx + 0x20]
cmp esi, ecx
jg 0x58068e
mov esi, ecx
mov ebx, dword [esp + 0xac]
mov dword [edi + 4], esi
test ebx, ebx
jle 0x5806b0
mov ecx, dword [edi]
lea eax, [ebx + ebx*4]
add eax, eax
sub ecx, eax
lea eax, [ecx + 0xa]
cdq
idiv ebx
add eax, esi
mov dword [edi + 4], eax
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x5806c4
push eax
call fcn.0040d50c
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x5806d5
push eax
call fcn.0040d50c
add esp, 4
mov eax, dword [esp + 0x98]
test eax, eax
je 0x5806e9
push eax
call fcn.0040d50c
add esp, 4
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x5806fa
push ecx
call fcn.0040d50c
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00527e2c
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x18], esi
jge 0x580559
mov ecx, dword [esp + 0x60]
sar ecx, 2
dec ecx
imul ecx, dword [ebp + 0x10]
add ecx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], ecx
jmp 0x580559
mov esi, dword [esp + 0x3c]
mov ecx, ebx
sub ecx, esi
xor eax, eax
sar ecx, 2
cmp ecx, dword [esp + 0x7c]
setle al
dec eax
and eax, dword [esp + 0x7c]
cmp ecx, eax
jbe 0x580e3f
cmp dword [esp + 0x7c], 0
mov esi, dword [esi + eax*4]
mov dword [esp + 0x24], esi
je 0x58077f
lea eax, [ecx - 1]
cmp dword [esp + 0x7c], eax
jne 0x58079a
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x8c]
sar eax, 2
imul eax, dword [ebp + 0x10]
neg eax
lea esi, [esi + eax*2]
mov dword [esp + 0x24], esi
mov ecx, edi
cmp edx, 0x339f
jne 0x5807b4
mov eax, dword [esp + 0x10]
push dword [eax + 0x20]
lea eax, [esp + 0xe8]
jmp 0x5807c2
push dword [esp + 0x88]
lea eax, [esp + 0xf0]
push esi
push eax
call fcn.0057b250
mov edx, dword [edi]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], esi
cmp edx, 0xd70
jne 0x5807ef
mov eax, dword [edi + 0x34]
test eax, eax
jle 0x5807ef
mov dword [esp + 0x38], eax
cmp dword [esp + 0x7c], 0
jne 0x58088a
cmp esi, dword [esp + 0x24]
jne 0x58088a
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0x58]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x58088a
mov edx, dword [esp + 0x10]
cmp dword [eax + 0x10], 0xfa0
je 0x580827
add eax, 0x58
cmp eax, dword [edx + 4]
jne 0x580816
mov edx, dword [edi]
cmp eax, ecx
je 0x58088a
cmp dword [eax], 0xd48
jne 0x58088a
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
test eax, eax
jns 0x580864
cmp dword [esp + 0x58], 0
jle 0x580862
mov edi, dword [esp + 0x58]
lea eax, [ecx + ecx]
mov dword [esp + 0x18], edi
sub dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x48], eax
test eax, eax
jle 0x58088a
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x18]
sar eax, 2
imul eax, ecx
lea eax, [eax + eax*2]
add eax, eax
sub esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
cmp edx, 0xd69
jne 0x5808b0
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
sub eax, ecx
sar eax, 2
cmp eax, 2
jbe 0x580e3f
mov eax, dword [ecx + 8]
mov dword [esp + 0xac], eax
cmp dword [esp + 0x7c], 1
jne 0x5808ef
cmp esi, dword [esp + 0x24]
jne 0x5808ef
cmp dword [edi - 0x58], 0xd5d
jne 0x5808ef
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x18]
sar eax, 2
imul eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
add eax, eax
sub esi, eax
sub esi, dword [esp + 0x28]
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
cmp edx, 0xd59
je 0x580913
cmp edx, 0xd5b
je 0x580913
cmp edx, 0xd5c
je 0x580913
cmp edx, 0xd68
jne 0x5809d1
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp edi, eax
je 0x58098b
mov eax, dword [edi - 0x58]
cmp eax, 0xd4f
je 0x580935
cmp eax, 0xd6e
je 0x580935
cmp eax, 0xd6f
jne 0x58098b
mov eax, dword [edi - 0x3c]
mov edx, dword [edi - 0x40]
sub eax, edx
sar eax, 2
test eax, eax
je 0x580e3f
mov edx, dword [edx]
mov ecx, dword [edi - 0x2c]
call fcn.00586df0
mov ecx, dword [esp + 0x28]
mov edx, dword [edi - 0x40]
add ecx, eax
mov eax, dword [edi - 0x3c]
sub eax, edx
mov dword [esp + 0x28], ecx
sar eax, 2
mov dword [esp + 0x74], ecx
test eax, eax
je 0x580e3f
mov edx, dword [edx]
mov ecx, dword [edi - 0x2c]
call fcn.00586df0
mov edx, dword [esp + 0x10]
sub esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
lea ecx, [edi + 0x58]
cmp ecx, dword [edx + 4]
je 0x5809d5
mov eax, dword [ecx]
cmp eax, 0xd4f
je 0x5809aa
cmp eax, 0xd6e
je 0x5809aa
cmp eax, 0xd6f
jne 0x5809d5
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
sub eax, edx
sar eax, 2
test eax, eax
je 0x580e3f
mov edx, dword [edx]
mov ecx, dword [ecx + 0x2c]
call fcn.00586df0
sub esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp edi, eax
je 0x580a01
cmp dword [edi], 0xd58
je 0x580a01
cmp edi, eax
je 0x580a01
cmp dword [edi - 0x58], 0xd49
jne 0x580a01
mov eax, dword [ebp + 0x10]
imul eax, dword [edi - 0x44]
sub esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
mov eax, dword [edi]
cmp eax, 0xd4a
jne 0x580a0f
mov byte [esp + 0x1f], 1
cmp eax, 0xd50
je 0x580a21
cmp eax, 0xd52
je 0x580a21
xor eax, eax
jmp 0x580a26
mov eax, 1
test eax, eax
je 0x580b73
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], ecx
mov eax, dword [esp + 0x10]
mov esi, edi
mov byte [esp + 0x140], 4
cmp edi, dword [eax + 4]
je 0x580b2a
mov edi, eax
mov edi, edi
cmp dword [esi + 0x10], 0xfa0
jne 0x580b13
mov eax, dword [esi]
cmp eax, 0xd50
je 0x580aa9
cmp eax, 0xd52
jne 0x580aae
inc ecx
mov dword [esp + 0x24], ecx
cmp eax, 0xd51
je 0x580abc
cmp eax, 0xd53
jne 0x580ac1
dec ecx
mov dword [esp + 0x24], ecx
cmp eax, 0xd51
je 0x580acf
cmp eax, 0xd53
jne 0x580ad3
test ecx, ecx
je 0x580b1f
push dword [esp + 0xcc]
lea eax, [esp + 0xb4]
mov ecx, esi
push 0
push eax
call fcn.0057b250
push dword [ebp + 0x14]
lea eax, [esp + 0xbc]
mov ecx, edi
push dword [ebp + 0x10]
push dword [esp + 0xbc]
push dword [esp + 0xbc]
push esi
push eax
call fcn.00580e80
mov ecx, dword [esp + 0x24]
add esi, 0x58
cmp esi, dword [edi + 4]
jne 0x580a90
mov edx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x18]
sar eax, 2
imul eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
add eax, eax
sub esi, eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov byte [esp + 0x140], 3
test edx, edx
je 0x580b6f
push edx
call fcn.0040d50c
add esp, 4
mov edx, dword [esp + 0x10]
cmp byte [esp + 0x1f], 0
jne 0x580c19
test esi, esi
jle 0x580c19
mov eax, dword [edi + 0x30]
mov dword [esp + 0x2c], eax
cmp esi, eax
jge 0x580c19
fild dword [esp + 0x2c]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fild dword [esp + 0x34]
fstp qword [esp + 0x2c]
fdiv qword [esp + 0x2c]
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x98]
sub eax, esi
mov ecx, dword [esp + 0x7c]
sar eax, 3
cmp ecx, eax
jge 0x580beb
cmp dword [edx + 0x1c], 0
jle 0x580beb
cmp eax, ecx
jbe 0x580e3d
mov eax, dword [esp + 0x44]
fstp qword [esi + ecx*8]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], esi
jmp 0x580c0d
fcom qword [edx + 0x50]
fnstsw ax
test ah, 5
jp 0x580bfa
fstp st(0)
fld qword [edx + 0x50]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x74]
fstp qword [edx + 0x50]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov ecx, dword [edi]
mov dword [esp + 0x70], ecx
lea eax, [ecx - 0xd4b]
cmp eax, 0x24
ja case.0x580c31.3403
movzx eax, byte [eax + 0x580e58]
jmp dword [eax*4 + 0x580e4c]
mov esi, dword [ebp + 0x10]
lea eax, [edi + 0x58]
cmp eax, dword [edx + 4]
je 0x580c5e
cmp dword [eax], 0xd48
je 0x580c5e
mov eax, dword [esp + 0x28]
sub eax, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x74], eax
jmp 0x580c5e
mov esi, dword [ebp + 0x10]
cmp ecx, 0xd48
jne 0x580c8e
cmp byte [esp + 0x1f], 0
jne 0x580c89
mov ecx, dword [esp + 0x28]
lea eax, [esi + esi]
sub ecx, eax
sub ecx, dword [edx + 0x38]
cmp dword [esp + 0x18], ecx
jg 0x580c89
mov eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0x1f], 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 0x580cf5
mov ecx, dword [esp + 0x28]
lea eax, [esi + esi]
sub ecx, eax
mov eax, dword [esp + 0x10]
sub ecx, dword [eax + 0x38]
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fdiv qword [eax + 0x50]
call fcn.0052ea70
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x20], esi
cmp eax, dword [esp + 0x18]
jle 0x580ceb
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
jmp 0x580cfd
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x70], 0xd50
jne 0x580d1a
mov edx, dword [esp + 0x58]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x58], edx
cmp edx, ecx
jg 0x580d1a
mov dword [esp + 0x58], ecx
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push dword [ebp + 0x10]
push dword [esp + 0x40]
push eax
push edi
lea eax, [esp + 0x88]
push eax
call fcn.00580e80
mov eax, dword [edi]
cmp eax, 0xd50
je 0x580d4b
cmp eax, 0xd52
jne 0x580de8
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x34]
cmp eax, ecx
jae 0x580dba
mov edx, dword [esp + 0x4c]
cmp edx, eax
ja 0x580dba
mov ecx, eax
mov eax, dword [esp + 0x50]
sub ecx, edx
sar ecx, 3
mov dword [esp + 0x2c], ecx
cmp eax, dword [esp + 0x54]
jne 0x580d86
push ecx
lea ecx, [esp + 0x50]
call fcn.0040b110
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x580dad
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + ecx*8]
mov dword [esi], eax
mov eax, dword [edx + ecx*8 + 4]
mov ecx, esi
mov esi, dword [esp + 0x20]
mov dword [ecx + 4], eax
add ecx, 8
mov dword [esp + 0x50], ecx
jmp 0x580dec
mov ecx, dword [esp + 0x50]
add ecx, 8
mov dword [esp + 0x50], ecx
jmp 0x580dec
cmp ecx, dword [esp + 0x54]
jne 0x580dce
push ecx
lea ecx, [esp + 0x50]
call fcn.0040b110
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x580ddf
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], eax
add ecx, 8
mov dword [esp + 0x50], ecx
jmp 0x580dec
mov ecx, dword [esp + 0x50]
mov eax, dword [edi]
cmp eax, 0xd51
je 0x580e14
cmp eax, 0xd53
je 0x580e14
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x28], ecx
jmp 0x58055d
mov eax, dword [esp + 0x90]
sub ecx, 8
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], eax
jmp 0x58055d
push str.vector_T__too_long
call fcn.00546d0c
fstp st(0)
push str.invalid_vector_T__subscript
call fcn.00546d3a
lea ecx, [ecx]
pop ebx
or al, 88
add byte [eax], bh
or al, 0x58
add byte [ebx + 0xc], bl
pop eax
add byte [eax], al
add al, byte [edx]
add al, byte [eax]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add dword [edx], eax
add al, byte [eax]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add byte [eax], al
int3