Function at 0x10066c41
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x34]
push 5
push eax
push edx
push esi
call fcn.10026824
add esp, 0x10
test eax, eax
je 0x100663ce
mov edx, dword [0x100ce600]
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp edx, 2
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
jge 0x1006636e
mov dword [ebp - 0x38], 0x100ce560
jmp 0x10066380
lea eax, [ebp - 0x38]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x10067082
mov ebx, dword [ebp - 0x38]
add ebx, 0x10
mov eax, dword [ebp - 0x4c]
mov dword [ebx], eax
mov edx, dword [ebp - 0x48]
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 8], ecx
mov esi, dword [ebp - 0x40]
mov dword [ebx + 0xc], esi
mov edi, dword [ebp - 0x3c]
mov dword [ebx + 0x10], edi
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x4c]
push 0x14
add ebx, 0x10
push eax
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10066386
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
or byte [eax + 0x12b], 0x40
mov eax, dword [ebp - 0x10]
movzx edx, byte [eax + 0x129]
test dl, 0x20
jne 0x100665c0
or byte [eax + 0x128], 2
mov edx, dword [ebp - 0x10]
movzx edi, byte [edx + 0x128]
mov eax, edi
and eax, 0xfffffff7
and edi, 4
shr edi, 2
and edi, 1
shl edi, 3
or eax, edi
mov byte [edx + 0x128], al
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x128]
mov ebx, ecx
and ebx, 0xffffffdf
and ecx, 4
shr ecx, 2
and ecx, 1
shl ecx, 5
or ebx, ecx
mov byte [eax + 0x128], bl
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x131]
movzx eax, byte [ecx + 0x128]
and edx, 0xfffffffe
and eax, 4
shr eax, 2
and eax, 1
or edx, eax
mov byte [ecx + 0x131], dl
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x131]
movzx eax, byte [ecx + 0x128]
and edx, 0xfffffffd
and eax, 4
shr eax, 2
and eax, 1
add eax, eax
or edx, eax
mov byte [ecx + 0x131], dl
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x128]
mov edx, eax
and edx, 0xffffffbf
and eax, 4
shr eax, 2
and eax, 1
shl eax, 6
or edx, eax
mov byte [ecx + 0x128], dl
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x128]
mov edx, eax
and edx, 0x7f
and eax, 4
shr eax, 2
and eax, 1
shl eax, 7
or edx, eax
mov byte [ecx + 0x128], dl
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x128]
mov edx, eax
and edx, 0xffffffef
and eax, 4
shr eax, 2
and eax, 1
shl eax, 4
or edx, eax
mov byte [ecx + 0x128], dl
cmp esi, 0x20
jae 0x1006651f
mov ecx, esi
mov eax, 1
shl eax, cl
test al, 0x61
je 0x1006651f
mov eax, 1
push eax
push 4
push eax
push dword [ebp - 0x10]
call fcn.1002b098
add esp, 0x10
test eax, eax
jne 0x1006651f
mov eax, dword [ebp - 0x10]
jmp 0x100665c0
mov dword [ebp - 0x4c], 0
call fcn.100936dd
mov ecx, dword [0x100ce600]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
xor edx, edx
cmp ecx, 2
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
jge 0x1006654f
mov dword [ebp - 0x38], 0x100ce560
jmp 0x10066561
lea eax, [ebp - 0x38]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x10067092
mov ebx, dword [ebp - 0x38]
add ebx, 0x10
mov eax, dword [ebp - 0x4c]
mov dword [ebx], eax
mov edx, dword [ebp - 0x48]
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 8], ecx
mov edi, dword [ebp - 0x40]
mov dword [ebx + 0xc], edi
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x10], eax
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x4c]
push 0x14
add ebx, 0x10
push eax
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10066567
push esi
call fcn.100260c0
pop ecx
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
and byte [edx + 0x12b], 0xbf
mov esp, ebp
pop ebp
ret
push 0
push eax
call fcn.1002b60c
add esp, 8
test eax, eax
jne 0x100671ff
mov ebx, dword [ebp - 0x10]
movzx eax, byte [ebx + 0x12a]
test al, 0x40
je 0x100668f5
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x100665f8
movzx eax, byte [edx + 0x1e]
test eax, eax
jne 0x100668e3
push dword [ebx + 0xc0]
push 0x20
push dword [ebx + 0x38]
call fcn.1007f474
mov ebx, dword [ebp - 0x10]
push 0
push ebx
call fcn.1002b60c
add esp, 0x14
test eax, eax
je 0x100666c2
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x100670a2
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x10066660
mov eax, 0x26
mov dword [edx + 0x30], eax
mov edx, dword [ebx + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1006664e
xor edx, edx
mov dword [eax + 4], edx
mov dword [ebx + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebx + 0x12b]
movzx esi, byte [ebx + 0x12c]
mov edx, ecx
and edx, 0x40
mov edi, 2
xor eax, eax
test edx, edx
setne al
test ecx, 0x80
jne 0x1006668c
mov edi, 0
test esi, 1
mov edx, 4
jne 0x1006669e
mov edx, 0
or eax, edi
or eax, edx
mov edx, 0x26
push edx
push edx
push eax
push 0xffffffffffffffff
push ebx
call fcn.10077ea0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx ecx, byte [ebx + 0x11c]
lea eax, [ecx - 1]
cmp eax, 6
ja case.default.0x100666dc
mov eax, dword [eax*4 + 0x100c06bc]
jmp eax
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x100666ea
mov dword [ebx + 0x3c], edx
jmp 0x100666f0
mov edx, dword [ebx + 0x38]
mov dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0xc0]
lea ecx, [edx + eax - 1]
movzx eax, byte [ebx + 0x128]
mov dword [ebx + 0x44], ecx
jmp 0x10066861
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x100670c1
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x1006674b
mov eax, 0x2c
mov dword [edx + 0x30], eax
mov edx, dword [ebx + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x10066739
xor edx, edx
mov dword [eax + 4], edx
mov dword [ebx + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0x2c
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebx + 0x12b]
movzx esi, byte [ebx + 0x12c]
mov edx, ecx
and edx, 0x40
mov edi, 2
xor eax, eax
test edx, edx
setne al
test ecx, 0x80
jne 0x10066777
mov edi, 0
test esi, 1
mov edx, 4
jne 0x10066789
mov edx, 0
or eax, edi
or eax, edx
mov edx, 0x2c
push edx
push edx
push eax
push 0xffffffffffffffff
push ebx
call fcn.10077ea0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x100670e0
add edx, 4
mov dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0xc0]
lea ecx, [edx + eax - 8]
movzx eax, byte [ebx + 0x128]
mov dword [ebx + 0x44], ecx
jmp 0x10066861
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x100667e3
mov dword [ebx + 0x3c], edx
jmp 0x100667e9
mov edx, dword [ebx + 0x38]
mov dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0xc0]
mov dword [ebp - 0x4c], eax
lea edi, [edx + eax]
movzx eax, byte [ebx + 0x128]
test al, 4
mov dword [ebp - 0x48], edi
je 0x1006683a
movzx edi, byte [ebx + 0x12a]
test edi, 0x40
je 0x10066826
movzx edi, byte [ebx + 0x12b]
test edi, 4
je 0x10066826
cmp ecx, 1
je 0x1006682e
mov ecx, dword [ebp - 0x48]
mov dword [ebx + 0x44], ecx
jmp 0x10066861
mov ecx, dword [ebp - 0x4c]
lea edi, [edx + ecx - 2]
mov dword [ebx + 0x44], edi
jmp 0x10066861
mov ecx, edi
mov dword [ebx + 0x44], ecx
jmp 0x10066861
push 0x47f
push str.for_portlib.c
push 2
push 8
call fcn.100149ac
add esp, 0x10
movzx eax, byte [ebx + 0x128]
mov edx, dword [ebx + 0x3c]
test al, 4
je 0x10066887
movzx eax, byte [ebx + 0x12a]
test al, 0x40
je 0x10066887
movzx eax, byte [ebx + 0x12b]
test al, 4
je 0x10066887
movsx eax, byte [ebx + 0x11c]
cmp eax, 1
je 0x100668ca
movsx eax, byte [ebx + 0x11e]
cmp eax, 2
jne 0x100668aa
movsx eax, byte [ebx + 0x11c]
cmp eax, 7
je 0x100668ca
cmp eax, 6
je 0x100668ca
add dword [ebx + 0x44], 0xffffffff
jmp 0x100668ca
cmp eax, 1
jne 0x100668ca
movsx eax, byte [ebx + 0x11c]
cmp eax, 7
je 0x100668c4
cmp eax, 6
je 0x100668c4
add dword [ebx + 0x44], 0xffffffff
add edx, 5
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x48], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
mov dword [edx + 0x4c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x7c]
mov byte [edx + 0x1e], 1
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x7c]
mov dword [edx + 0xc], eax
jmp 0x10066a70
push 0
push ebx
call fcn.1002b60c
add esp, 8
test eax, eax
je 0x100669ac
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x100670ee
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x1006694a
mov eax, 0x26
mov dword [edx + 0x30], eax
mov edx, dword [ebx + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x10066938
xor edx, edx
mov dword [eax + 4], edx
mov dword [ebx + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebx + 0x12b]
movzx esi, byte [ebx + 0x12c]
mov edx, ecx
and edx, 0x40
mov edi, 2
xor eax, eax
test edx, edx
setne al
test ecx, 0x80
jne 0x10066976
mov edi, 0
test esi, 1
mov edx, 4
jne 0x10066988
mov edx, 0
or eax, edi
or eax, edx
mov edx, 0x26
push edx
push edx
push eax
push 0xffffffffffffffff
push ebx
call fcn.10077ea0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx eax, byte [ebx + 0x11c]
add eax, 0xffffffff
cmp eax, 6
ja case.default.0x100669c6
mov eax, dword [eax*4 + 0x100c06a0]
jmp eax
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x100669d2
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0xc0]
mov dword [ebx + 0x3c], eax
lea eax, [eax + edx - 1]
mov dword [ebx + 0x44], eax
jmp 0x10066a70
mov edx, dword [ebx + 0x40]
mov eax, 1
mov word [ebp - 0x4c], ax
test edx, edx
je 0x1006710d
mov eax, 1
mov byte [edx + 2], al
mov edx, dword [ebx + 0x40]
mov byte [edx + 3], 0
mov edx, dword [ebx + 0x40]
add edx, 4
mov eax, dword [ebx + 0xc0]
mov dword [ebx + 0x3c], edx
add edx, eax
mov dword [ebx + 0x44], edx
jmp 0x10066a70
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x1006712d
add edx, 4
mov eax, dword [ebx + 0xc0]
mov dword [ebx + 0x3c], edx
lea edx, [edx + eax - 8]
mov dword [ebx + 0x44], edx
jmp 0x10066a70
mov edx, dword [ebx + 0x40]
test edx, edx
jne 0x10066a4a
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xc0]
mov dword [ebx + 0x3c], edx
add edx, eax
mov dword [ebx + 0x44], edx
jmp 0x10066a70
push 0x492
push str.for_portlib.c
push 2
push 8
call fcn.100149ac
add esp, 0x10
mov eax, dword [ebp + 0xc]
cmp eax, 0xa
je 0x100671b4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x100]
cmp ecx, 3
je 0x10066a93
cmp ecx, 1
jne 0x10066f68
mov edx, dword [eax + 0x3c]
cmp edx, dword [eax + 0x44]
jbe 0x10066e5c
movzx edx, byte [eax + 0x12a]
test dl, 0x40
je 0x10066b4d
push eax
call fcn.1002b904
pop ecx
test eax, eax
je 0x10066b4a
mov edx, dword [0x100ce600]
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp edx, 2
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
jge 0x10066ae3
mov dword [ebp - 0x38], 0x100ce560
jmp 0x10066af5
lea eax, [ebp - 0x38]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x10067138
mov ebx, dword [ebp - 0x38]
add ebx, 0x10
mov eax, dword [ebp - 0x4c]
mov dword [ebx], eax
mov edx, dword [ebp - 0x48]
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 8], ecx
mov edi, dword [ebp - 0x40]
mov dword [ebx + 0xc], edi
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x10], eax
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x4c]
push 0x14
add ebx, 0x10
push eax
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10066afb
push esi
call fcn.100260c0
pop ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x90], 0x80000000
push 0
mov dword [eax + 0x94], 0xffffffff
mov eax, dword [ebp - 0x10]
and byte [eax + 0x12e], 0x7f
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.1002b60c
add esp, 8
test eax, eax
je 0x10066c25
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x10067148
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x10066bc3
mov eax, 0x26
mov dword [edx + 0x30], eax
mov edx, dword [ebx + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x10066bb1
xor edx, edx
mov dword [eax + 4], edx
mov dword [ebx + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebx + 0x12b]
movzx esi, byte [ebx + 0x12c]
mov edx, ecx
and edx, 0x40
mov edi, 2
xor eax, eax
test edx, edx
setne al
test ecx, 0x80
jne 0x10066bef
mov edi, 0
test esi, 1
mov edx, 4
jne 0x10066c01
mov edx, 0
or eax, edi
or eax, edx
mov edx, 0x26
push edx
push edx
push eax
push 0xffffffffffffffff
push ebx
call fcn.10077ea0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx ecx, byte [ebx + 0x11c]
lea eax, [ecx - 1]
cmp eax, 6
ja case.default.0x10066c3f
mov eax, dword [eax*4 + 0x100c06d8]
jmp eax
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x10066c4d
mov dword [ebx + 0x3c], edx
jmp 0x10066c53
mov edx, dword [ebx + 0x38]
mov dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0xc0]
lea ecx, [edx + eax - 1]
movzx eax, byte [ebx + 0x128]
mov dword [ebx + 0x44], ecx
jmp 0x10066dc4
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x10067167
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x10066cae
mov eax, 0x2c
mov dword [edx + 0x30], eax
mov edx, dword [ebx + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x10066c9c
xor edx, edx
mov dword [eax + 4], edx
mov dword [ebx + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0x2c
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebx + 0x12b]
movzx esi, byte [ebx + 0x12c]
mov edx, ecx
and edx, 0x40
mov edi, 2
xor eax, eax
test edx, edx
setne al
test ecx, 0x80
jne 0x10066cda
mov edi, 0
test esi, 1
mov edx, 4
jne 0x10066cec
mov edx, 0
or eax, edi
or eax, edx
mov edx, 0x2c
push edx
push edx
push eax
push 0xffffffffffffffff
push ebx
call fcn.10077ea0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x10067186
add edx, 4
mov dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0xc0]
lea ecx, [edx + eax - 8]
movzx eax, byte [ebx + 0x128]
mov dword [ebx + 0x44], ecx
jmp 0x10066dc4
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x10066d46
mov dword [ebx + 0x3c], edx
jmp 0x10066d4c
mov edx, dword [ebx + 0x38]
mov dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0xc0]
mov dword [ebp - 0x48], eax
lea edi, [edx + eax]
movzx eax, byte [ebx + 0x128]
test al, 4
mov dword [ebp - 0x4c], edi
je 0x10066d9d
movzx edi, byte [ebx + 0x12a]
test edi, 0x40
je 0x10066d89
movzx edi, byte [ebx + 0x12b]
test edi, 4
je 0x10066d89
cmp ecx, 1
je 0x10066d91
mov ecx, dword [ebp - 0x4c]
mov dword [ebx + 0x44], ecx
jmp 0x10066dc4
mov ecx, dword [ebp - 0x48]
lea edi, [edx + ecx - 2]
mov dword [ebx + 0x44], edi
jmp 0x10066dc4
mov ecx, edi
mov dword [ebx + 0x44], ecx
jmp 0x10066dc4
push 0x4bd
push str.for_portlib.c
push 2
push 8
call fcn.100149ac
add esp, 0x10
movzx eax, byte [ebx + 0x128]
mov edx, dword [ebx + 0x3c]
test al, 4
je 0x10066dea
movzx eax, byte [ebx + 0x12a]
test al, 0x40
je 0x10066dea
movzx eax, byte [ebx + 0x12b]
test al, 4
je 0x10066dea
movsx eax, byte [ebx + 0x11c]
cmp eax, 1
je 0x10066e2d
movsx eax, byte [ebx + 0x11e]
cmp eax, 2
jne 0x10066e0d
movsx eax, byte [ebx + 0x11c]
cmp eax, 7
je 0x10066e2d
cmp eax, 6
je 0x10066e2d
add dword [ebx + 0x44], 0xffffffff
jmp 0x10066e2d
cmp eax, 1
jne 0x10066e2d
movsx eax, byte [ebx + 0x11c]
cmp eax, 7
je 0x10066e27
cmp eax, 6
je 0x10066e27
add dword [ebx + 0x44], 0xffffffff
add edx, 5
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x48], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
mov dword [edx + 0x4c], eax
mov ecx, dword [ebp - 0x10]
push dword [ecx + 0xc0]
push 0x20
push dword [ecx + 0x38]
call fcn.1007f474
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 0xc]
mov byte [edx], al
mov edx, dword [ebp - 0x10]
add dword [edx + 0x3c], 1
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x3c]
mov ecx, dword [edi + 0x4c]
cmp ebx, ecx
ja 0x10066e77
mov ebx, ecx
mov dword [edi + 0x4c], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x100]
cmp ecx, 1
je 0x10066e96
cmp ecx, 3
jne 0x10066f68
jmp 0x1006704f
push eax
call fcn.1002b904
pop ecx
test eax, eax
je 0x10066f31
mov edx, dword [0x100ce600]
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp edx, 2
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
jge 0x10066eca
mov dword [ebp - 0x38], 0x100ce560
jmp 0x10066edc
lea eax, [ebp - 0x38]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x10067194
mov ebx, dword [ebp - 0x38]
add ebx, 0x10
mov eax, dword [ebp - 0x4c]
mov dword [ebx], eax
mov edx, dword [ebp - 0x48]
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 8], ecx
mov edi, dword [ebp - 0x40]
mov dword [ebx + 0xc], edi
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x10], eax
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x4c]
push 0x14
add ebx, 0x10
push eax
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10066ee2
push esi
call fcn.100260c0
pop ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x7c]
test eax, eax
je 0x10066f42
mov byte [eax + 0x1e], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x90], 0x80000000
mov dword [edx + 0x94], 0xffffffff
mov eax, dword [ebp - 0x10]
and byte [eax + 0x12e], 0x7f
mov eax, dword [ebp - 0x10]
jmp 0x1006704f
mov edx, dword [ebp + 0xc]
mov byte [ebp - 0x38], dl
mov dword [eax + 0x90], 0x80000000
mov dword [eax + 0x94], 0xffffffff
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
and byte [eax + 0x12e], 0x7f
push 1
push ecx
push dword [ebp - 0x10]
call fcn.1002ccf0
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x1006704c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x4c], ebx
mov ebx, dword [0x100ce600]
mov dword [edx + 0xb8], eax
xor ecx, ecx
mov eax, dword [ebp - 0x10]
and byte [eax + 0x12b], 0xbf
cmp ebx, 2
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
jge 0x10066fe5
mov dword [ebp - 0x14], 0x100ce560
jmp 0x10066ff7
lea eax, [ebp - 0x14]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x100671a4
mov ebx, dword [ebp - 0x14]
add ebx, 0x10
mov eax, dword [ebp - 0x4c]
mov dword [ebx], eax
mov edx, dword [ebp - 0x48]
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 8], ecx
mov edi, dword [ebp - 0x40]
mov dword [ebx + 0xc], edi
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x10], eax
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push 0x14
add ebx, 0x10
push eax
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10066ffd
push esi
call fcn.100260c0
pop ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
and byte [eax + 0x12b], 0xbf
push esi
call fcn.100260c0
pop ecx
test eax, eax
je 0x10067073
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x100663bc
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x1006659d
push ebx
mov eax, 0x26
push eax
push eax
push 1
call fcn.10014254
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push ebx
mov eax, 0x2c
push eax
push eax
push 1
call fcn.10014254
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x38]
add edx, 4
mov dword [ebx + 0x3c], edx
jmp 0x100667be
push ebx
mov eax, 0x26
push eax
push eax
push 1
call fcn.10014254
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movzx edx, byte [ebp - 0x4b]
mov edi, dword [ebx + 0x38]
mov eax, 1
mov byte [edi + 2], al
mov ecx, dword [ebx + 0x38]
mov byte [ecx + 3], dl
mov edx, dword [ebx + 0x38]
add edx, 4
jmp 0x10066a10
mov edx, dword [ebx + 0x38]
add edx, 4
jmp 0x10066a2e
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x10066b31
push ebx
mov eax, 0x26
push eax
push eax
push 1
call fcn.10014254
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push ebx
mov eax, 0x2c
push eax
push eax
push 1
call fcn.10014254
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x38]
add edx, 4
mov dword [ebx + 0x3c], edx
jmp 0x10066d21
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x10066f18
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x10067033
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x100]
cmp ecx, 1
je 0x100671e2
movzx edx, byte [eax + 0x12a]
test dl, 0x40
je 0x10066a85
movzx edx, byte [eax + 0x12b]
test dl, 2
je 0x10066a85
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x10066e83
mov byte [edx + 0x1e], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x100]
jmp 0x10066e83
mov dword [ebp - 0x4c], 0
call fcn.100936dd
mov ecx, dword [0x100ce600]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
xor edx, edx
cmp ecx, 2
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
jge 0x1006722f
mov dword [ebp - 0x38], 0x100ce560
jmp 0x1006723d
lea eax, [ebp - 0x38]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x1006729c
mov ebx, dword [ebp - 0x38]
add ebx, 0x10
mov eax, dword [ebp - 0x4c]
mov dword [ebx], eax
mov edx, dword [ebp - 0x48]
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 8], ecx
mov edi, dword [ebp - 0x40]
mov dword [ebx + 0xc], edi
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x10], eax
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x4c]
push 0x14
add ebx, 0x10
push eax
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10067243
push esi
call fcn.100260c0
pop ecx
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
and byte [edx + 0x12b], 0xbf
mov esp, ebp
pop ebp
ret
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x10067279