Function at 0x57d070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a246b
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x606040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x2a8], ebx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], 8
mov edx, dword [ebp + 8]
mov dword [ebp - 0x250], 0
jae 0x57d0d9
lea edx, [ebp + 8]
mov ecx, dword [ebx + 0x28]
lea edi, [ebp - 0x250]
push edi
push esi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebx + 0x28]
test al, al
jne 0x57d10f
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [ebp - 0x2b4], eax
lea eax, [ebp - 0x2b4]
push 0x5fd720
push eax
call fcn.00539115
mov dword [ebp - 0x2a0], 0
lea edx, [ebp - 0x2a0]
mov eax, dword [ecx]
push edx
push dword [ebp - 0x250]
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x57d150
mov ecx, dword [ebx + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x2a4]
push 0x5fd720
push eax
call fcn.00539115
mov dword [ebp - 0x254], 0
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 2
push eax
push 0x5ddb18
push 0x17
push 0
push 0x5d9a94
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x57d1b2
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x374]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x368], 0
call fcn.00539115
mov edx, 1
mov dword [ebp - 0x244], edx
cmp edx, dword [ebp - 0x2a0]
ja 0x57dd78
mov dword [ebp - 0x26c], 0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x26c]
mov ecx, dword [ebx + 0x28]
push esi
push edx
push dword [ebp - 0x250]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x57d212
mov ecx, dword [ebx + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2b0]
push 0x5fd720
push eax
call fcn.00539115
mov dword [ebp - 0x268], 0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x268]
mov eax, dword [ebp - 0x254]
push edx
push 0
push 0
push dword [ebp - 0x26c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x57d276
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x2f4]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
call fcn.00539115
mov dword [ebp - 0x258], 0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x258]
mov eax, dword [ebp - 0x268]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
test eax, eax
jns 0x57d2d2
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2d4]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
call fcn.00539115
xor edi, edi
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x264], edi
mov byte [ebp - 4], 7
lea edx, [ebp - 0x22c]
xor eax, eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x258]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jns 0x57d342
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x314]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x308], edi
call fcn.00539115
lea ecx, [ebp - 0x22c]
mov edx, 0x5d9ab4
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x57d36e
add ecx, 4
add edx, 4
sub esi, 4
jae 0x57d352
mov eax, dword [ebp - 0x258]
jmp 0x57d41e
mov eax, dword [ebp - 0x254]
lea edx, [ebp - 0x264]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jns 0x57d3ba
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x354]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 0
call fcn.00539115
fldz
mov eax, dword [ebp - 0x264]
push 0
sub esp, 8
mov ecx, dword [eax]
fstp qword [esp]
push 0
push 0
push 0x5d9ab4
push dword [ebp - 0x258]
push eax
call dword [ecx + 0x20]
test eax, eax
jns 0x57d418
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x334]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 0
call fcn.00539115
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x57d430
mov ecx, dword [eax]
mov edi, eax
push eax
call dword [ecx + 4]
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x278], 0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x278]
mov eax, dword [ebp - 0x254]
push edx
lea edx, [ebp - 0x22c]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jns 0x57d491
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2e4]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0
call fcn.00539115
mov dword [ebp - 0x274], 0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x274]
mov eax, dword [ebp - 0x278]
push edx
push 0x5ddb28
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x57d4ef
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x304]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 0
call fcn.00539115
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x294]
mov dword [ebp - 0x294], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
test eax, eax
jns 0x57d545
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x324]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
call fcn.00539115
fldz
lea ecx, [ebp - 0x2bc]
fst qword [ebp - 0x2c4]
push ecx
fstp qword [ebp - 0x2bc]
mov eax, dword [edi]
lea ecx, [ebp - 0x2c4]
push ecx
push edi
call dword [eax + 0x14]
test eax, eax
jns 0x57d5a0
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x344]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
call fcn.00539115
fld qword [ebp - 0x2c4]
sub esp, 8
fstp qword [esp]
call fcn.00536b4f
call fcn.0053af60
fld qword [ebp - 0x2bc]
fstp qword [esp]
mov dword [ebp - 0x234], eax
call fcn.00536b4f
add esp, 8
call fcn.0053af60
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x238], eax
push ecx
mov dword [ebp - 0x260], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x25c], 0
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0xc]
test eax, eax
jns 0x57d639
mov dword [ebp - 0x360], eax
lea eax, [ebp - 0x364]
push 0x5fd814
push eax
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x35c], 0
mov dword [ebp - 0x358], 0
call fcn.00539115
push dword [ebp - 0x238]
mov esi, dword [ebx + 0x18]
push dword [ebp - 0x234]
mov dword [ebp - 0x248], esi
push dword [ebp - 0x294]
lea eax, [esi + 1]
push dword [ebp - 0x2ac]
mov dword [ebx + 0x18], eax
xor eax, eax
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00403530
push dword [ebp - 0x244]
mov ecx, dword [ebx + 0x20]
push dword [ebp - 0x25c]
push dword [ebp - 0x260]
push esi
call fcn.0056dfb0
mov esi, dword [ebx + 0xc]
cmp esi, dword [ebx + 0x10]
je 0x57daf6
mov ecx, dword [ebx + 4]
mov eax, esi
sub eax, dword [ebx + 0xc]
sub ecx, dword [ebx]
sar eax, 3
mov dword [ebp - 0x240], eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 0x240]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
ja 0x57d6e2
push str.invalid_vector_T__subscript
call fcn.00569015
mov edx, dword [ebx]
lea eax, [ecx + ecx*2]
shl eax, 2
mov dword [ebp - 0x23c], eax
mov ecx, dword [eax + edx + 4]
sub ecx, dword [eax + edx]
mov eax, 0x92492493
imul ecx
mov eax, dword [ebp - 0x248]
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
idiv ecx
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x240]
sar eax, 3
mov dword [ebp - 0x24c], edx
cmp eax, ecx
ja 0x57d736
push str.invalid_vector_T__subscript
call fcn.00569015
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 3
cmp eax, ecx
ja 0x57d74d
push str.invalid_vector_T__subscript
call fcn.00569015
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + eax]
mov ecx, dword [ecx + eax + 4]
mov eax, 0x92492493
sub ecx, edx
mov dword [ebp - 0x238], edx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x24c]
cmp eax, edx
ja 0x57d78b
push str.invalid_vector_T__subscript
call fcn.00569015
mov eax, dword [ebp - 0x240]
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [ebx + 0xc]
shl ecx, 2
mov dword [ebp - 0x234], ecx
mov edx, dword [edx + eax*8 + 4]
mov dword [ebp - 0x270], edx
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x238]
cmp dword [ecx + eax], 0
jne 0x57d886
push 0
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp - 0x270]
mov ebx, eax
push dword [ebp - 0x230]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
push ebx
mov dword [ecx + edx], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [ebp - 0x2a8]
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x240]
ja 0x57d82c
push str.invalid_vector_T__subscript
call fcn.00569015
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebx]
mov edx, dword [eax + ecx]
mov ecx, dword [eax + ecx + 4]
mov eax, 0x92492493
sub ecx, edx
mov dword [ebp - 0x230], edx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x24c]
ja 0x57d868
push str.invalid_vector_T__subscript
call fcn.00569015
mov eax, dword [ebp - 0x234]
add esi, 8
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x248]
mov dword [ecx + eax + 8], edx
jmp 0x57d6a2
mov eax, dword [ebp - 0x23c]
mov edx, dword [ebx]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x238], ecx
mov ecx, dword [eax + edx + 4]
mov eax, 0x92492493
sub ecx, dword [ebp - 0x238]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x24c]
ja 0x57d8c6
push str.invalid_vector_T__subscript
call fcn.00569015
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
mov al, byte [ecx + eax + 0x18]
test al, al
jne 0x57da57
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebx]
mov edx, dword [eax + ecx]
mov ecx, dword [eax + ecx + 4]
mov eax, 0x92492493
sub ecx, edx
mov dword [ebp - 0x230], edx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x24c]
ja 0x57d91a
push str.invalid_vector_T__subscript
call fcn.00569015
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x230]
cmp dword [ecx + eax + 4], 0xffffffff
je 0x57d9d6
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebx]
mov edx, dword [eax + ecx]
mov ecx, dword [eax + ecx + 4]
mov eax, 0x92492493
sub ecx, edx
mov dword [ebp - 0x230], edx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x24c]
ja 0x57d96d
push str.invalid_vector_T__subscript
call fcn.00569015
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00539180
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x230]
push dword [ecx + eax + 4]
lea eax, [ebp - 0x21c]
push dword [ebp - 0x240]
push dword [ebx + 0x24]
push str._sTemp__d__d.bmp
push 0x104
push eax
call fcn.00536b33
add esp, 0x24
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x57d9d6
push dword [ebp - 0x24c]
mov ecx, ebx
push dword [ebp - 0x240]
call fcn.0057cc10
mov ecx, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x240]
ja 0x57d9fd
push str.invalid_vector_T__subscript
call fcn.00569015
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebx]
mov edx, dword [eax + ecx]
mov ecx, dword [eax + ecx + 4]
mov eax, 0x92492493
sub ecx, edx
mov dword [ebp - 0x230], edx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x24c]
ja 0x57da39
push str.invalid_vector_T__subscript
call fcn.00569015
mov eax, dword [ebp - 0x234]
add esi, 8
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x248]
mov dword [ecx + eax + 8], edx
jmp 0x57d6a2
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x240]
push dword [ebp - 0x25c]
push dword [ebp - 0x260]
push edi
call fcn.0057c590
test eax, eax
je 0x57dac2
push dword [ebp - 0x248]
mov eax, dword [ebp - 0x290]
push dword [ebp - 0x240]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x28c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x288]
mov dword [ecx + 8], eax
mov ecx, ebx
call fcn.0057c8c0
push dword [ebp - 0x290]
call fcn.0040a426
add esp, 4
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x288], 0
add esi, 8
mov dword [ebp - 0x28c], 0
jmp 0x57d6a2
mov esi, dword [ebx + 0xc]
lea esp, [esp]
cmp esi, dword [ebx + 0x10]
je 0x57dcd5
mov ecx, dword [ebx + 4]
mov eax, esi
sub eax, dword [ebx + 0xc]
sub ecx, dword [ebx]
sar eax, 3
mov dword [ebp - 0x234], eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 0x234]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
ja 0x57db40
push str.invalid_vector_T__subscript
call fcn.00569015
mov eax, dword [ebx]
lea edx, [ecx + ecx*2]
shl edx, 2
mov dword [ebp - 0x238], edx
mov ecx, dword [edx + eax + 4]
sub ecx, dword [edx + eax]
mov eax, 0x92492493
imul ecx
mov eax, dword [ebp - 0x248]
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
idiv ecx
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], edx
mov edx, dword [ecx + eax]
mov ecx, dword [ecx + eax + 4]
mov eax, 0x92492493
sub ecx, edx
mov dword [ebp - 0x230], edx
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x23c]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
ja 0x57dbb5
push str.invalid_vector_T__subscript
call fcn.00569015
mov edx, dword [ebp - 0x248]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x230]
shl eax, 2
mov dword [ebp - 0x270], eax
cmp dword [eax + ecx + 8], edx
jne 0x57dccd
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x234]
push dword [ebp - 0x25c]
push dword [ebp - 0x260]
push edi
call fcn.0057c590
test eax, eax
je 0x57dca1
mov ecx, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x234]
ja 0x57dc41
push str.invalid_vector_T__subscript
call fcn.00569015
mov edx, dword [ebp - 0x238]
mov ecx, dword [ebx]
mov eax, dword [edx + ecx]
mov ecx, dword [edx + ecx + 4]
sub ecx, eax
mov dword [ebp - 0x230], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x23c]
ja 0x57dc7d
push str.invalid_vector_T__subscript
call fcn.00569015
push dword [ebp - 0x284]
mov ecx, dword [ebp - 0x230]
add ecx, dword [ebp - 0x270]
push ecx
push dword [ebp - 0x27c]
push dword [ebp - 0x280]
call fcn.0057e8f0
push dword [ebp - 0x284]
call fcn.0040a426
add esp, 4
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x280], 0
add esi, 8
jmp 0x57db00
push dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
push dword [ebp - 0x248]
call eax
mov byte [ebp - 4], 8
add esp, 8
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x57dcfa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x57dd0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x57dd22
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 5
test edi, edi
je 0x57dd30
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x57dd44
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x57dd58
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x57dd6c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x244]
inc edx
jmp 0x57d1b7
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x57dd8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor edi, edi
jmp 0x57ddac
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x250]
test edx, edx
je 0x57ddd0
mov ecx, dword [ebx + 0x28]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 0x250], 0
cmp dword [ebp + 0x1c], 8
jb 0x57dde1
push dword [ebp + 8]
call fcn.0040a426
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00535334
mov esp, ebp
pop ebp
ret 0x1c