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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b1e40
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x616040]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [ebx + 0x18]
push 1
call fcn.004101b2
mov edx, dword [ebx + 0x18]
lea ecx, [esp + 0x150]
mov dword [esp + 0xb0], eax
call fcn.0057cbe0
mov dword [esp + 0x230], 0
mov eax, dword [esp + 0x150]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 0x78], edi
cmp dword [eax + 0x110], 0xd0d
jne 0x57fc2c
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x26a
jge 0x57fc2c
test edi, edi
jle 0x57fc2c
dec edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x230], 1
cmp dword [ebx + 0x1c], 0
mov edx, dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [ebx + 0x18]
jle 0x57fda9
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x1b4], 0
push ecx
push dword [eax + 0x20]
mov dword [esp + 0x1c0], 0
mov dword [esp + 0x1c4], 0x7d
mov dword [esp + 0x1c8], 0
call edx
mov eax, dword [esp + 0x1bc]
sub eax, dword [esp + 0x1b4]
cmp eax, 0xdc
jge 0x57fcb2
mov eax, 0xdc
mov dword [esp + 0xec], eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0xec]
push eax
call fcn.004043b0
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x1d4]
push ecx
mov dword [esp + 0x1d8], 0
mov dword [esp + 0x1dc], 0
push dword [eax + 0x20]
mov dword [esp + 0x1e4], 0x91
mov dword [esp + 0x1e8], 0
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [esp + 0x1dc]
sub eax, dword [esp + 0x1d4]
cmp eax, 0xff
jge 0x57fd24
mov eax, 0xff
mov dword [esp + 0x10c], eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x10c]
push eax
call fcn.004043b0
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x1f4]
push ecx
mov dword [esp + 0x1f8], 0
mov dword [esp + 0x1fc], 0
push dword [eax + 0x20]
mov dword [esp + 0x204], 0x50
mov dword [esp + 0x208], 0
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [esp + 0x1fc]
sub eax, dword [esp + 0x1f4]
cmp eax, 0x8c
jge 0x57fd96
mov eax, 0x8c
mov dword [esp + 0x104], eax
lea eax, [esp + 0x104]
jmp 0x57ffdc
test eax, eax
je 0x57fe99
mov ecx, dword [eax + 0x110]
cmp ecx, 0xd0e
jne 0x57fe28
mov edx, 0xa0
mov ecx, eax
call fcn.00588a60
mov dword [esp + 0x100], eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x100]
push eax
call fcn.004043b0
mov ecx, dword [ebx + 0x18]
mov edx, 0x17c
call fcn.00588a60
mov dword [esp + 0xdc], eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0xdc]
push eax
call fcn.004043b0
mov ecx, dword [ebx + 0x18]
mov edx, 0xa
call fcn.00588a60
mov dword [esp + 0x114], eax
lea eax, [esp + 0x114]
jmp 0x57ffdc
cmp ecx, 0xd0d
jne 0x57fe99
mov edx, 0x10e
mov ecx, eax
call fcn.00588a60
mov dword [esp + 0xf8], eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0xf8]
push eax
call fcn.004043b0
mov ecx, dword [ebx + 0x18]
mov edx, 0x12c
call fcn.00588a60
mov dword [esp + 0x108], eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x108]
push eax
call fcn.004043b0
mov ecx, dword [ebx + 0x18]
mov edx, 0xc8
call fcn.00588a60
mov dword [esp + 0xd8], eax
lea eax, [esp + 0xd8]
jmp 0x57ffdc
lea ecx, [esp + 0x1e4]
mov dword [esp + 0x1e4], 0
push ecx
push dword [eax + 0x20]
mov dword [esp + 0x1f0], 0
mov dword [esp + 0x1f4], 0x5b
mov dword [esp + 0x1f8], 0
call edx
mov eax, dword [esp + 0x1ec]
sub eax, dword [esp + 0x1e4]
cmp eax, 0xa0
jge 0x57feec
mov eax, 0xa0
mov dword [esp + 0x110], eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x110]
push eax
call fcn.004043b0
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x194]
push ecx
mov dword [esp + 0x198], 0
mov dword [esp + 0x19c], 0
push dword [eax + 0x20]
mov dword [esp + 0x1a4], 0x66
mov dword [esp + 0x1a8], 0
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [esp + 0x19c]
sub eax, dword [esp + 0x194]
cmp eax, 0xb4
jge 0x57ff5e
mov eax, 0xb4
mov dword [esp + 0x118], eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x118]
push eax
call fcn.004043b0
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x1a4]
push ecx
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
push dword [eax + 0x20]
mov dword [esp + 0x1b4], 0x44
mov dword [esp + 0x1b8], 0
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [esp + 0x1ac]
sub eax, dword [esp + 0x1a4]
cmp eax, 0x78
jge 0x57ffce
mov eax, 0x78
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x30]
call fcn.004043b0
push edi
push esi
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
lea eax, [esp + 0x154]
push eax
call fcn.00581300
mov edi, dword [esp + 0x148]
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x38], edi
cmp edi, eax
jg 0x580014
mov edi, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [esp + 0x148]
mov byte [esp + 0x230], 2
push eax
lea ecx, [esp + 0x64]
call fcn.0040afe0
push dword [esp + 0x78]
lea eax, [esp + 0x30]
push esi
push edi
push eax
call fcn.00581290
xor eax, eax
xor edx, edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov byte [esp + 0x230], 3
mov ecx, dword [ebx + 0x38]
test ecx, ecx
js 0x5800a1
add ecx, esi
jmp 0x5800a3
neg ecx
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x28], ecx
test eax, eax
js 0x5800d1
mov ecx, dword [esp + 0x78]
add ecx, ecx
sub ecx, dword [esp + 0xb0]
add ecx, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x90], ecx
jmp 0x5800de
neg eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x90], eax
mov edi, dword [ebx]
xor ecx, ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x48], edi
cmp edi, dword [ebx + 4]
je 0x5811a7
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x7c], 0
cmp dword [edi + 0x10], 0xfa0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
jne 0x5810fc
mov ecx, dword [edi]
cmp ecx, 0xd57
jne 0x5804cd
mov ebx, dword [esp + 0x2c]
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 + 0x24], ebx
mov dword [esp + 0x30], ebx
cmp eax, ecx
jae 0x580190
cmp ecx, 0x3fffffff
ja 0x58117f
push ecx
lea ecx, [esp + 0x30]
call fcn.00404ca0
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x24], ebx
mov esi, dword [edi + 0x18]
cmp esi, dword [edi + 0x1c]
je 0x580345
lea esp, [esp]
mov eax, dword [esi]
mov dword [esp + 0x24], eax
test eax, eax
js 0x58022a
lea ecx, [eax*4]
mov dword [esp + 0x174], 0
mov eax, 0x92492493
mov dword [esp + 0x178], 0
imul ecx
mov dword [esp + 0x180], 0
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x17c], eax
lea eax, [esp + 0x174]
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x18]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [esp + 0x17c]
sub ecx, dword [esp + 0x174]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jle 0x580224
mov dword [esp + 0x24], eax
jmp 0x58022a
mov eax, ecx
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], eax
cmp ecx, ebx
jae 0x5802c4
cmp edx, ecx
ja 0x5802c4
mov eax, ecx
mov ecx, dword [esp + 0x5c]
sub eax, edx
sar eax, 2
mov dword [esp + 0x54], eax
cmp ebx, ecx
jne 0x5802bb
mov eax, ecx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x5802b7
sub ebx, edx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x58117f
sub ecx, edx
mov eax, 0x3fffffff
sar ecx, 2
inc ebx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x580295
xor ecx, ecx
jmp 0x580297
add ecx, edx
cmp ecx, ebx
jae 0x58029d
mov ecx, ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00404ca0
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
test ebx, ebx
je 0x58032e
mov eax, dword [edx + eax*4]
jmp 0x58032c
mov ecx, dword [esp + 0x5c]
cmp ebx, ecx
jne 0x580328
mov eax, ecx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x580324
sub ebx, edx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x58117f
sub ecx, edx
mov eax, 0x3fffffff
sar ecx, 2
inc ebx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x580306
xor ecx, ecx
jmp 0x580308
add ecx, edx
cmp ecx, ebx
jae 0x58030e
mov ecx, ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00404ca0
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
test ebx, ebx
je 0x58032e
mov dword [ebx], eax
add ebx, 4
add esi, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
cmp esi, dword [edi + 0x1c]
jne 0x5801a0
mov esi, dword [esp + 0x2c]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x6c], 0
mov ecx, eax
mov edx, esi
sar ecx, 2
add eax, 3
dec ecx
shr eax, 2
imul ecx, dword [esp + 0x18]
cmp ebx, esi
sbb esi, esi
not esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x54], ecx
and esi, eax
je 0x58038e
mov eax, dword [esp + 0x6c]
mov edi, edi
add ecx, dword [edx]
lea edx, [edx + 4]
inc eax
cmp eax, esi
jne 0x580380
mov dword [esp + 0x54], ecx
cmp ecx, dword [esp + 0x38]
je 0x5803cd
test ecx, ecx
je 0x5803cd
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x6c], 0
test esi, esi
je 0x5803cd
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x38]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
imul eax, ebx
inc edi
cdq
idiv dword [esp + 0x54]
mov dword [ecx - 4], eax
cmp edi, esi
jne 0x5803b0
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
xor edx, edx
xor ecx, ecx
test esi, esi
je 0x5803ea
lea esp, [esp]
add edx, dword [eax]
lea eax, [eax + 4]
inc ecx
cmp ecx, esi
jne 0x5803e0
test edx, edx
jns 0x5804b4
lea eax, [esp + 0x1c4]
mov dword [esp + 0x1c4], 0
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x1d0], 0
mov dword [esp + 0x1d4], 0
mov eax, dword [eax + 0x18]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x1cc]
xor eax, eax
sub esi, dword [esp + 0x1c4]
mov dword [esp + 0x204], eax
mov dword [esp + 0x208], eax
mov dword [esp + 0x20c], eax
mov dword [esp + 0x210], eax
mov dword [esp + 0x214], eax
mov dword [esp + 0x218], eax
mov dword [esp + 0x21c], eax
lea eax, [esp + 0x204]
push 0x17
push eax
mov eax, dword [esp + 0x1c]
push 1
mov dword [esp + 0x44], esi
mov ecx, dword [eax + 0x18]
call fcn.00410117
cmp dword [esp + 0x210], 0
jle 0x581166
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esi, eax
mov dword [esp + 0x38], esi
jmp 0x581166
cmp dword [esp + 0x38], edx
jge 0x581166
mov eax, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x38], eax
jmp 0x581166
mov esi, dword [esp + 0x94]
mov edx, ebx
sub edx, dword [esp + 0x2c]
xor eax, eax
sar edx, 2
cmp edx, esi
mov dword [esp + 0x54], edx
setle al
dec eax
and eax, esi
cmp edx, eax
jbe 0x581189
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + eax*4]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x24], eax
test esi, esi
je 0x58050d
lea eax, [edx - 1]
cmp esi, eax
jne 0x580532
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x24]
sar eax, 2
imul eax, dword [esp + 0x18]
neg eax
lea edx, [edx + eax*2]
mov dword [esp + 0x24], edx
jmp 0x580536
mov edx, dword [esp + 0x24]
cmp ecx, 0x339f
jne 0x580567
mov eax, dword [esp + 0x14]
mov ecx, edi
push dword [eax + 0x20]
lea eax, [esp + 0x168]
push edx
push eax
call fcn.0057c210
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], ecx
jmp 0x58062b
cmp ecx, 0xd58
je 0x5805ab
cmp ecx, 0xd59
jne 0x580585
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x18]
and eax, 0xfffffffc
cmp eax, 0x20
je 0x5805ab
push dword [esp + 0x58]
lea eax, [esp + 0x160]
mov ecx, edi
push edx
push eax
call fcn.0057c210
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], ecx
jmp 0x58062b
push dword [esp + 0x58]
lea eax, [esp + 0x170]
mov ecx, edi
push edx
push eax
call fcn.0057c210
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
fstp qword [esp + 0x6c]
fld qword [esp + 0x6c]
fmul qword [eax + 0x50]
call fcn.0052ea60
mov ebx, dword [esp + 0x30]
mov edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov esi, dword [edi]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], edx
cmp esi, 0xd70
jne 0x58064e
mov eax, dword [edi + 0x34]
test eax, eax
jle 0x58064e
mov ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x5806b9
cmp edx, dword [esp + 0x24]
jne 0x5806b9
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0x58]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x5806b9
mov esi, dword [esp + 0x14]
cmp dword [eax + 0x10], 0xfa0
je 0x580682
add eax, 0x58
cmp eax, dword [esi + 4]
jne 0x580671
mov esi, dword [edi]
cmp eax, ecx
je 0x5806b9
cmp dword [eax], 0xd48
jne 0x5806b9
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x38]
sar eax, 2
imul eax, dword [esp + 0x18]
lea eax, [eax + eax*2]
add eax, eax
sub edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], edx
cmp esi, 0xd69
jne 0x580a36
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x110], 0xd0d
jne 0x58071f
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x26a
jge 0x58071b
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
sub eax, ecx
sar eax, 2
cmp eax, 2
jbe 0x581189
push dword [ecx + 8]
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [edi + 0x24]
call fcn.00571bc0
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], ecx
jmp 0x580787
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
sub eax, esi
sar eax, 2
cmp eax, 2
jbe 0x581189
mov esi, dword [esi + 8]
mov ecx, dword [edi + 0x24]
cmp esi, 1
jge 0x580743
mov esi, 1
mov eax, edx
mov ecx, dword [ecx + 0x7c]
cdq
idiv esi
neg ecx
mov edx, 0xff
sbb ecx, ecx
and ecx, 0x1e
sub edx, ecx
cmp eax, edx
jle 0x580771
mov ecx, dword [esp + 0x1c]
mov edi, edx
mov eax, ecx
inc esi
cdq
idiv esi
cmp eax, edi
jg 0x580763
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], ecx
mov esi, dword [esp + 0x14]
mov eax, dword [edi]
cmp eax, 0xd59
je 0x5807a9
cmp eax, 0xd5b
je 0x5807a9
cmp eax, 0xd5c
je 0x5807a9
cmp eax, 0xd68
jne 0x58084c
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp edi, eax
je 0x5807fe
lea esi, [edi - 0x58]
cmp esi, eax
je 0x5807fe
mov eax, dword [esi]
cmp eax, 0xd4f
je 0x5807d1
cmp eax, 0xd6e
je 0x5807d1
cmp eax, 0xd6f
jne 0x5807fe
mov ecx, esi
call fcn.0040b1e0
mov ecx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x8c], ecx
mov ecx, esi
call fcn.0040b1e0
mov edx, dword [esp + 0x1c]
sub edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], edx
mov esi, dword [esp + 0x14]
lea ecx, [edi + 0x58]
cmp ecx, dword [esi + 4]
je 0x58084c
mov eax, dword [ecx]
cmp eax, 0xd4f
je 0x580821
cmp eax, 0xd6e
je 0x580821
cmp eax, 0xd6f
jne 0x58084c
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
sub eax, edx
sar eax, 2
test eax, eax
je 0x581189
mov edx, dword [edx]
mov ecx, dword [ecx + 0x2c]
call fcn.00588a60
mov edx, dword [esp + 0x1c]
sub edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], edx
mov eax, dword [esi]
cmp edi, eax
je 0x580879
cmp dword [edi], 0xd58
je 0x580879
cmp edi, eax
je 0x580879
cmp dword [edi - 0x58], 0xd49
jne 0x580879
mov eax, dword [edi - 0x44]
imul eax, dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], edx
cmp dword [edi], 0xd4a
jne 0x580a13
xor al, al
xor edx, edx
mov byte [esp + 0x4f], al
xor ecx, ecx
xor eax, eax
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
mov edx, dword [esp + 0x14]
mov esi, edi
mov byte [esp + 0x230], 4
cmp edi, dword [edx + 4]
mov edx, dword [esp + 0xbc]
je 0x5809d6
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x10], 0xfa0
jne 0x5809c3
mov eax, dword [esi]
cmp eax, 0xd48
je 0x580b12
cmp eax, 0xd5a
jne 0x580918
mov byte [esp + 0x4f], 1
xor eax, eax
cmp dword [esp + 0x54], edx
setle al
dec eax
and eax, edx
cmp dword [esp + 0x54], eax
jbe 0x581189
cmp dword [esp + 0xbc], 0
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + eax*4]
je 0x58094d
mov eax, dword [esp + 0x54]
dec eax
cmp dword [esp + 0xbc], eax
jne 0x580961
sub ecx, dword [esp + 0xcc]
sar ecx, 2
imul ecx, dword [esp + 0x18]
neg ecx
lea edx, [edx + ecx*2]
push dword [esp + 0xc8]
lea eax, [esp + 0xf4]
mov ecx, esi
push edx
push eax
call fcn.0057c210
mov ecx, dword [esi + 0x30]
mov eax, dword [esp + 0xf0]
cmp eax, ecx
jge 0x58098f
mov eax, ecx
mov dword [esp + 0xf0], eax
push dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x1c]
push dword [esp + 0xfc]
push eax
push esi
lea eax, [esp + 0xc8]
push eax
call fcn.00582170
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x14]
add esi, 0x58
cmp esi, dword [eax + 4]
jne 0x5808f2
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
add edx, edx
sub edx, eax
mov eax, dword [esp + 0x14]
sub edx, dword [esp + 0x28]
add edx, dword [eax + 0x38]
add edx, ecx
mov byte [esp + 0x230], 3
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], edx
test eax, eax
je 0x580a17
push eax
call fcn.0040d50c
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, dword [edi]
cmp eax, 0xd50
je 0x580b37
cmp eax, 0xd52
je 0x580b37
xor eax, eax
jmp 0x580b3c
cmp esi, 0xd72
jne 0x580783
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x580a54
mov eax, 0x1f4
jmp 0x580a9f
lea ecx, [esp + 0x184]
mov dword [esp + 0x184], 0
push ecx
push dword [eax + 0x20]
mov dword [esp + 0x190], 0
mov dword [esp + 0x194], 0xca
mov dword [esp + 0x198], 0x11e
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [esp + 0x190]
sub eax, dword [esp + 0x188]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
mov dword [esp + 0x44], eax
fstp qword [esp + 0x6c]
fld qword [esp + 0x6c]
fmul qword [0x5ee9f8]
call fcn.0052ea60
mov ebx, dword [esp + 0x30]
mov edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], eax
jmp 0x580787
mov al, byte [esp + 0x4f]
test al, al
je 0x5809cf
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x18]
add eax, edx
mov dword [esp + 0xb4], eax
jmp 0x5809da
mov eax, 1
test eax, eax
je 0x580cf3
xor eax, eax
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x48], 0
xor edx, edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], ecx
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], edx
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x14]
mov esi, edi
mov byte [esp + 0x230], 5
cmp edi, dword [eax + 4]
je 0x580caf
xor eax, eax
cmp dword [esp + 0x54], ecx
setle al
dec eax
and eax, ecx
cmp dword [esp + 0x54], eax
jbe 0x581189
cmp dword [esi + 0x10], 0xfa0
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + eax*4]
jne 0x580c8d
mov eax, dword [esi]
cmp eax, 0xd50
je 0x580bee
cmp eax, 0xd52
jne 0x580bf9
mov ecx, dword [esp + 0x48]
inc ecx
mov dword [esp + 0x48], ecx
jmp 0x580bfd
mov ecx, dword [esp + 0x48]
cmp eax, 0xd51
je 0x580c0b
cmp eax, 0xd53
jne 0x580c10
dec ecx
mov dword [esp + 0x48], ecx
cmp eax, 0xd51
je 0x580c1e
cmp eax, 0xd53
jne 0x580c26
test ecx, ecx
je 0x580c9d
push dword [esp + 0x130]
lea eax, [esp + 0x144]
mov ecx, esi
push edx
push eax
call fcn.0057c210
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
lea eax, [edx + edx*2]
add eax, eax
sub ecx, eax
cmp dword [esp + 0x1c], ecx
jg 0x580c56
mov dword [esp + 0x1c], ecx
push dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x120]
push edx
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push esi
push eax
call fcn.00582170
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x124]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
add esi, 0x58
cmp esi, dword [eax + 4]
jne 0x580bb4
mov eax, dword [esp + 0x120]
mov edx, dword [esp + 0x134]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0xa4]
mov esi, dword [esp + 0x1c]
sar eax, 2
imul eax, dword [esp + 0x18]
lea eax, [eax + eax*2]
add eax, eax
sub esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
mov byte [esp + 0x230], 3
test edx, edx
je 0x580cf7
push edx
call fcn.0040d50c
add esp, 4
jmp 0x580cf7
mov esi, dword [esp + 0x1c]
mov eax, dword [edi + 0x30]
cmp esi, eax
jge 0x580d04
mov esi, eax
mov dword [esp + 0x40], esi
mov edx, dword [edi]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x80], eax
lea eax, [edx - 0xd4b]
mov dword [esp + 0x7c], ecx
cmp eax, 0x25
ja case.0x580d2f.3405
movzx eax, byte [eax + 0x581260]
jmp dword [eax*4 + 0x581248]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x18]
sub eax, 2
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
cmp dword [edi], 0xd48
jne 0x580d70
add eax, eax
sub dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
sub eax, dword [edx + 0x38]
cmp dword [esp + 0x38], eax
jg 0x580d70
mov dword [esp + 0x38], eax
push dword [esp + 0x78]
lea eax, [esp + 0x90]
push dword [esp + 0x1c]
push ecx
push esi
push edi
push eax
mov ecx, edx
call fcn.00582170
mov eax, dword [edi]
cmp eax, 0xd5b
je 0x580d9a
cmp eax, 0xd5c
jne 0x580da1
mov esi, dword [edi + 0x30]
mov dword [esp + 0x40], esi
cmp eax, 0xd50
je 0x580db3
cmp eax, 0xd52
jne 0x5810a4
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x60]
cmp eax, ecx
jae 0x58101a
cmp edx, eax
ja 0x58101a
mov esi, eax
mov eax, dword [esp + 0x3c]
sub esi, edx
sar esi, 3
cmp ecx, eax
jne 0x580ffa
sub eax, ecx
sar eax, 3
cmp eax, 1
jae 0x580ffa
sub ecx, edx
mov eax, 0x1fffffff
sar ecx, 3
sub eax, ecx
cmp eax, 1
jb 0x58117f
mov eax, dword [esp + 0x3c]
lea edx, [ecx + 1]
sub eax, dword [esp + 0x60]
sar eax, 3
mov ecx, eax
mov dword [esp + 0x3c], eax
shr ecx, 1
mov eax, 0x1fffffff
sub eax, ecx
cmp eax, dword [esp + 0x3c]
jae 0x580fd4
xor eax, eax
jmp 0x580fda
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
test eax, eax
jle 0x580e55
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x80], eax
mov edx, dword [esp + 0x14]
jmp 0x580d4d
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
test eax, eax
jle 0x580e55
add eax, 0xfffffff7
jmp 0x580e41
cmp edx, 0xd6e
jne 0x580f74
mov eax, dword [esp + 0x24]
sub eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x28]
cmp dword [edi + 4], 0x1f40
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x7c], ecx
jne 0x580f22
lea eax, [edi + 0x18]
push eax
lea ecx, [esp + 0xe4]
call fcn.0040a670
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe0]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x580ecf
mov eax, dword [ecx]
sub eax, 9
jmp 0x580ed4
mov eax, 9
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x80], eax
mov byte [esp + 0x230], 3
test ecx, ecx
je 0x580f1e
push ecx
call fcn.0040d50c
add esp, 4
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
cmp edi, edx
je 0x580fcd
lea eax, [edi - 0x58]
cmp eax, edx
je case.0x580d2f.3405
mov eax, dword [eax]
cmp eax, 0xd59
je 0x580f5d
cmp eax, 0xd5b
je 0x580f5d
cmp eax, 0xd5c
je 0x580f5d
cmp eax, 0xd68
jne case.0x580d2f.3405
mov eax, dword [esp + 0x18]
sub ecx, eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x20]
jmp 0x580d51
cmp edx, 0xd6f
jne 0x580f22
mov ecx, dword [esp + 0x24]
sub ecx, esi
add ecx, dword [esp + 0x28]
mov dword [esp + 0x7c], ecx
jmp 0x580f22
mov edx, dword [esp + 0x14]
lea eax, [edi + 0x58]
cmp eax, dword [edx + 4]
je 0x580d49
cmp dword [eax], 0xd48
je 0x580d49
cmp dword [eax + 0x10], 0xfa0
jne 0x580d49
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x8c], eax
jmp 0x580d49
mov edx, eax
jmp 0x580d49
mov eax, dword [esp + 0x3c]
add eax, ecx
cmp eax, edx
jae 0x580fe0
mov eax, edx
push eax
lea ecx, [esp + 0x64]
call fcn.0040b090
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x58100a
mov eax, dword [edx + esi*8]
mov dword [ecx], eax
mov eax, dword [edx + esi*8 + 4]
mov dword [ecx + 4], eax
add ecx, 8
mov dword [esp + 0x74], ecx
mov dword [esp + 0x64], ecx
jmp 0x5810a8
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jne 0x58108a
sub eax, ecx
sar eax, 3
cmp eax, 1
jae 0x58108a
sub ecx, edx
mov eax, 0x1fffffff
sar ecx, 3
sub eax, ecx
cmp eax, 1
jb 0x58117f
mov eax, dword [esp + 0x3c]
lea edx, [ecx + 1]
sub eax, dword [esp + 0x60]
sar eax, 3
mov ecx, eax
mov dword [esp + 0x3c], eax
shr ecx, 1
mov eax, 0x1fffffff
sub eax, ecx
cmp eax, dword [esp + 0x3c]
jae 0x581068
xor eax, eax
jmp 0x58106e
mov eax, dword [esp + 0x3c]
add eax, ecx
cmp eax, edx
jae 0x581074
mov eax, edx
push eax
lea ecx, [esp + 0x64]
call fcn.0040b090
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x581097
mov eax, dword [esp + 0x20]
mov dword [ecx], esi
mov dword [ecx + 4], eax
add ecx, 8
mov dword [esp + 0x74], ecx
mov dword [esp + 0x64], ecx
jmp 0x5810a8
mov ecx, dword [esp + 0x74]
mov eax, dword [edi]
cmp eax, 0xd51
je 0x5810d0
cmp eax, 0xd53
je 0x5810d0
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x58], edx
mov dword [esp + 0x50], ecx
jmp 0x5810f1
mov eax, dword [esp + 0xa0]
sub ecx, 8
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x24], 0
je 0x58111f
lea eax, [esp + 0x40]
mov ecx, edi
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0057a770
mov esi, dword [esp + 0x80]
jmp 0x581129
and dword [edi + 0x28], 0xfffffffe
xor eax, eax
mov esi, dword [esp + 0x1c]
add dword [esp + 0x88], eax
mov ecx, edi
mov eax, dword [esp + 0x14]
sub ecx, dword [eax]
mov eax, 0x2e8ba2e9
imul ecx
mov ecx, dword [esp + 0x14]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ecx + 0x34]
jne 0x581166
mov eax, dword [esp + 0x150]
mov dword [ecx + 0x2c], 0
sub esi, dword [eax + 4]
mov dword [ecx + 0x30], esi
mov esi, dword [esp + 0x14]
add edi, 0x58
mov dword [esp + 0x48], edi
cmp edi, dword [esi + 4]
je 0x581193
mov esi, dword [esp + 0x5c]
jmp 0x580112
push str.vector_T__too_long
call fcn.00546d0c
push str.invalid_vector_T__subscript
call fcn.00546d3a
mov edx, dword [esp + 0xa4]
mov ebx, esi
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x88]
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
je 0x5811bc
mov edi, edi
and dword [eax + 0x28], 0xfffffffe
add eax, 0x58
cmp eax, dword [ebx + 4]
jne 0x5811b0
test ecx, ecx
jle 0x5811c4
mov byte [ebx + 0x42], 1
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x38]
add eax, esi
lea eax, [ecx + eax*2]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0xb0]
add eax, dword [ebx + 0x3c]
mov dword [ebx + 0x28], eax
test edx, edx
je 0x5811f1
push edx
call fcn.0040d50c
add esp, 4
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x581202
push ecx
call fcn.0040d50c
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x581213
push eax
call fcn.0040d50c
add esp, 4
push dword [esp + 0x150]
call fcn.0040d50c
add esp, 4
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00527e2c
mov esp, ebp
pop ebp
ret