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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b1ea5
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x616040]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x616040]
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.004101b2
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 0x58147f
add edx, dword [ebp + 0x10]
jmp 0x581481
neg edx
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x74], edx
mov dword [esp + 0x28], edx
test ecx, ecx
js 0x5814a4
mov eax, dword [ebp + 0x14]
add eax, eax
sub eax, dword [esp + 0xa4]
add eax, ecx
mov dword [esp + 0x78], eax
jmp 0x5814aa
neg ecx
mov dword [esp + 0x78], ecx
mov edi, dword [ebx]
mov dword [esp + 0x64], edi
cmp edi, dword [ebx + 4]
je 0x581859
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 0x581841
mov edx, dword [edi]
cmp edx, 0xd57
jne 0x581a27
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 0x581531
cmp ecx, 0x3fffffff
ja 0x58211c
push ecx
lea ecx, [esp + 0x40]
call fcn.00404ca0
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 0x5816db
lea ecx, [ecx]
mov eax, dword [esi]
mov dword [esp + 0x14], eax
test eax, eax
js 0x5815c6
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 0x5815c0
mov dword [esp + 0x14], eax
jmp 0x5815c6
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 0x58165a
cmp edx, ecx
ja 0x58165a
mov eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, edx
sar eax, 2
mov dword [esp + 0x24], eax
cmp ebx, ecx
jne 0x581651
mov eax, ecx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x58164d
sub ebx, edx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x58211c
sub ecx, edx
mov eax, 0x3fffffff
sar ecx, 2
inc ebx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x58162b
xor ecx, ecx
jmp 0x58162d
add ecx, edx
cmp ecx, ebx
jae 0x581633
mov ecx, ebx
push ecx
lea ecx, [esp + 0x40]
call fcn.00404ca0
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 0x5816c4
mov eax, dword [edx + eax*4]
jmp 0x5816c2
mov ecx, dword [esp + 0x20]
cmp ebx, ecx
jne 0x5816be
mov eax, ecx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x5816ba
sub ebx, edx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x58211c
sub ecx, edx
mov eax, 0x3fffffff
sar ecx, 2
inc ebx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x58169c
xor ecx, ecx
jmp 0x58169e
add ecx, edx
cmp ecx, ebx
jae 0x5816a4
mov ecx, ebx
push ecx
lea ecx, [esp + 0x40]
call fcn.00404ca0
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
test ebx, ebx
je 0x5816c4
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 0x581540
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 0x581711
add esi, dword [ecx]
lea ecx, [ecx + 4]
inc edx
cmp edx, eax
jne 0x581707
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x1c], 0
jle 0x58176d
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x70], 0
test eax, eax
je 0x58176d
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 0x581740
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x14]
test esi, esi
jns 0x581a02
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.00410117
cmp dword [esp + 0x120], 0
jle 0x581839
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 0x5814d0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
cmp esi, eax
jg 0x581869
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
cmp dword [ebx + 0x1c], 0
jle 0x58193d
mov esi, dword [esp + 0x98]
cmp esi, dword [esp + 0x9c]
je 0x5818db
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 0x582128
fild dword [ebx + edi*4]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fmul qword [esi]
call fcn.0052ea60
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 0x581890
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 0x581916
add edx, dword [esi]
lea esi, [esi + 4]
inc edi
cmp edi, eax
jne 0x581908
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x18]
cmp edx, eax
jle 0x58193d
test eax, eax
je 0x58193d
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.0052ea60
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 0x58196e
mov esi, ecx
mov ebx, dword [esp + 0xac]
mov dword [edi + 4], esi
test ebx, ebx
jle 0x581990
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 0x5819a4
push eax
call fcn.0040d50c
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x5819b5
push eax
call fcn.0040d50c
add esp, 4
mov eax, dword [esp + 0x98]
test eax, eax
je 0x5819c9
push eax
call fcn.0040d50c
add esp, 4
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x5819da
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 0x581839
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 0x581839
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 0x582128
cmp dword [esp + 0x7c], 0
mov esi, dword [esi + eax*4]
mov dword [esp + 0x24], esi
je 0x581a5f
lea eax, [ecx - 1]
cmp dword [esp + 0x7c], eax
jne 0x581a7a
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 0x581a94
mov eax, dword [esp + 0x10]
push dword [eax + 0x20]
lea eax, [esp + 0xe8]
jmp 0x581aa2
push dword [esp + 0x88]
lea eax, [esp + 0xf0]
push esi
push eax
call fcn.0057c210
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 0x581acf
mov eax, dword [edi + 0x34]
test eax, eax
jle 0x581acf
mov dword [esp + 0x38], eax
cmp dword [esp + 0x7c], 0
jne 0x581b6a
cmp esi, dword [esp + 0x24]
jne 0x581b6a
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0x58]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x581b6a
mov edx, dword [esp + 0x10]
cmp dword [eax + 0x10], 0xfa0
je 0x581b07
add eax, 0x58
cmp eax, dword [edx + 4]
jne 0x581af6
mov edx, dword [edi]
cmp eax, ecx
je 0x581b6a
cmp dword [eax], 0xd48
jne 0x581b6a
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
test eax, eax
jns 0x581b44
cmp dword [esp + 0x58], 0
jle 0x581b42
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 0x581b6a
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 0x581b90
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
sub eax, ecx
sar eax, 2
cmp eax, 2
jbe 0x582128
mov eax, dword [ecx + 8]
mov dword [esp + 0xac], eax
cmp dword [esp + 0x7c], 1
jne 0x581bcf
cmp esi, dword [esp + 0x24]
jne 0x581bcf
cmp dword [edi - 0x58], 0xd5d
jne 0x581bcf
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 0x581bf3
cmp edx, 0xd5b
je 0x581bf3
cmp edx, 0xd5c
je 0x581bf3
cmp edx, 0xd68
jne 0x581cb1
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp edi, eax
je 0x581c6b
mov eax, dword [edi - 0x58]
cmp eax, 0xd4f
je 0x581c15
cmp eax, 0xd6e
je 0x581c15
cmp eax, 0xd6f
jne 0x581c6b
mov eax, dword [edi - 0x3c]
mov edx, dword [edi - 0x40]
sub eax, edx
sar eax, 2
test eax, eax
je 0x582128
mov edx, dword [edx]
mov ecx, dword [edi - 0x2c]
call fcn.00588a60
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 0x582128
mov edx, dword [edx]
mov ecx, dword [edi - 0x2c]
call fcn.00588a60
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 0x581cb5
mov eax, dword [ecx]
cmp eax, 0xd4f
je 0x581c8a
cmp eax, 0xd6e
je 0x581c8a
cmp eax, 0xd6f
jne 0x581cb5
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
sub eax, edx
sar eax, 2
test eax, eax
je 0x582128
mov edx, dword [edx]
mov ecx, dword [ecx + 0x2c]
call fcn.00588a60
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 0x581ce1
cmp dword [edi], 0xd58
je 0x581ce1
cmp edi, eax
je 0x581ce1
cmp dword [edi - 0x58], 0xd49
jne 0x581ce1
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 0x581cef
mov byte [esp + 0x1f], 1
cmp eax, 0xd50
je 0x581d01
cmp eax, 0xd52
je 0x581d01
xor eax, eax
jmp 0x581d06
mov eax, 1
test eax, eax
je 0x581e53
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 0x581e0a
mov edi, eax
mov edi, edi
cmp dword [esi + 0x10], 0xfa0
jne 0x581df3
mov eax, dword [esi]
cmp eax, 0xd50
je 0x581d89
cmp eax, 0xd52
jne 0x581d8e
inc ecx
mov dword [esp + 0x24], ecx
cmp eax, 0xd51
je 0x581d9c
cmp eax, 0xd53
jne 0x581da1
dec ecx
mov dword [esp + 0x24], ecx
cmp eax, 0xd51
je 0x581daf
cmp eax, 0xd53
jne 0x581db3
test ecx, ecx
je 0x581dff
push dword [esp + 0xcc]
lea eax, [esp + 0xb4]
mov ecx, esi
push 0
push eax
call fcn.0057c210
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.00582170
mov ecx, dword [esp + 0x24]
add esi, 0x58
cmp esi, dword [edi + 4]
jne 0x581d70
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 0x581e4f
push edx
call fcn.0040d50c
add esp, 4
mov edx, dword [esp + 0x10]
cmp byte [esp + 0x1f], 0
jne 0x581ef9
test esi, esi
jle 0x581ef9
mov eax, dword [edi + 0x30]
mov dword [esp + 0x2c], eax
cmp esi, eax
jge 0x581ef9
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 0x581ecb
cmp dword [edx + 0x1c], 0
jle 0x581ecb
cmp eax, ecx
jbe 0x582126
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 0x581eed
fcom qword [edx + 0x50]
fnstsw ax
test ah, 5
jp 0x581eda
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.0x581f11.3403
movzx eax, byte [eax + 0x582140]
jmp dword [eax*4 + 0x582134]
mov esi, dword [ebp + 0x10]
lea eax, [edi + 0x58]
cmp eax, dword [edx + 4]
je 0x581f47
cmp dword [eax], 0xd48
je 0x581f47
cmp dword [eax + 0x10], 0xfa0
jne 0x581f47
mov eax, dword [esp + 0x28]
sub eax, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x74], eax
jmp 0x581f47
mov esi, dword [ebp + 0x10]
cmp ecx, 0xd48
jne 0x581f77
cmp byte [esp + 0x1f], 0
jne 0x581f72
mov ecx, dword [esp + 0x28]
lea eax, [esi + esi]
sub ecx, eax
sub ecx, dword [edx + 0x38]
cmp dword [esp + 0x18], ecx
jg 0x581f72
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 0x581fde
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.0052ea60
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x20], esi
cmp eax, dword [esp + 0x18]
jle 0x581fd4
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
jmp 0x581fe6
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x70], 0xd50
jne 0x582003
mov edx, dword [esp + 0x58]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x58], edx
cmp edx, ecx
jg 0x582003
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.00582170
mov eax, dword [edi]
cmp eax, 0xd50
je 0x582034
cmp eax, 0xd52
jne 0x5820d1
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x34]
cmp eax, ecx
jae 0x5820a3
mov edx, dword [esp + 0x4c]
cmp edx, eax
ja 0x5820a3
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 0x58206f
push ecx
lea ecx, [esp + 0x50]
call fcn.0040b110
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x582096
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 0x5820d5
mov ecx, dword [esp + 0x50]
add ecx, 8
mov dword [esp + 0x50], ecx
jmp 0x5820d5
cmp ecx, dword [esp + 0x54]
jne 0x5820b7
push ecx
lea ecx, [esp + 0x50]
call fcn.0040b110
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x5820c8
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 0x5820d5
mov ecx, dword [esp + 0x50]
mov eax, dword [edi]
cmp eax, 0xd51
je 0x5820fd
cmp eax, 0xd53
je 0x5820fd
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x28], ecx
jmp 0x58183d
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 0x58183d
push str.vector_T__too_long
call fcn.00546d0c
fstp st(0)
push str.invalid_vector_T__subscript
call fcn.00546d3a
mov edi, edi
inc esp
pop ds
pop eax
add byte [eax], bl
pop ds
pop eax
add byte [edi + ebx + 0x58], al
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