Function at 0x1011bf60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea ecx, [ebp - 0x18]
push 1
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
push ebx
push ecx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
call fcn.101240b0
add esp, 0x10
mov esi, eax
test esi, esi
je 0x1011bff7
test byte [ebp + 0x10], 1
je 0x1011bfe6
movzx eax, byte [ebp + 0x13]
test eax, 0x80
je 0x1011bfd6
lea edx, [ebp + 0x27]
and edx, 0xfffffffc
lea eax, [edx + 4]
test byte [eax - 4], 0x10
je 0x1011bfd6
add edx, 7
and edx, 0xfffffffc
mov eax, dword [edx]
add edx, 7
and edx, 0xfffffffc
cmp byte [eax], 0x38
mov ebx, dword [edx]
jne 0x1011bfd6
cmp byte [eax + 2], 0x4e
je 0x1011c5bb
movzx eax, si
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push str.unknown
push edi
push 2
push esi
call fcn.10120f20
add esp, 0x10
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x84], edx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xf4], edx
mov eax, dword [ebp - 0x18]
movzx edx, byte [ebp + 0x13]
test edx, 0x80
mov esi, dword [eax + 0xb8]
mov edi, dword [eax + 0xbc]
mov dword [eax + 0xb0], esi
mov dword [eax + 0xb4], edi
je 0x1011c0a9
lea edx, [ebp + 0x27]
and edx, 0xfffffffc
lea eax, [edx + 4]
mov esi, dword [eax - 4]
test esi, 0x20
je 0x1011c050
mov eax, dword [ebp - 0x18]
or byte [eax + 0x173], 0x40
test esi, 0x10
je 0x1011c0ab
add edx, 7
and edx, 0xfffffffc
mov eax, dword [edx]
add edx, 7
and edx, 0xfffffffc
mov dword [ebp - 0x2c], eax
movsx eax, byte [eax]
cmp eax, 0x38
mov edx, dword [edx]
mov dword [ebp - 0x30], edx
je 0x1011cecc
cmp eax, 0xb
je 0x1011ccb7
cmp eax, 0x38
je 0x1011c694
cmp eax, 1
je 0x1011c0ab
push 0x1a4
push str.for_rdir.c
push 2
push 8
call fcn.10120f20
add esp, 0x10
jmp 0x1011c0ab
xor esi, esi
mov eax, dword [ebp - 0x18]
movzx edi, byte [ebp + 0x10]
mov ecx, edi
and ecx, 1
movzx edx, byte [eax + 0x16c]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x16c], dl
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edi
and edi, 2
movzx eax, byte [edx + 0x16c]
and eax, 0xfffffffd
or eax, edi
mov byte [edx + 0x16c], al
mov edi, dword [ebp - 0x18]
test byte [edi + 0x169], 0x20
je 0x1011d1bd
test byte [edi + 0x16a], 0x40
je 0x1011c173
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1011cf0c
test byte [eax + 0x44], 2
je 0x1011c149
mov dword [eax + 0x38], 0x100
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x18]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x64]
test eax, eax
je 0x1011c137
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x64], edx
mov eax, 0x100
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push 0x1f
movzx eax, byte [edi + 0x16c]
push 0x100
and eax, 7
push eax
push 0xffffffffffffffff
push edi
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 0x16b]
test al, 0x10
je 0x1011c1f4
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1011cf2b
test byte [eax + 0x44], 2
je 0x1011c1ca
mov dword [eax + 0x38], 0x102
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x18]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x64]
test eax, eax
je 0x1011c1b8
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x64], edx
mov eax, 0x102
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push 0x1f
movzx eax, byte [edi + 0x16c]
push 0x102
and eax, 7
push eax
push 0xffffffffffffffff
push edi
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
test al, 8
jne 0x1011c26b
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1011cf4a
test byte [eax + 0x44], 2
je 0x1011c241
mov edx, 0x22a
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1011c22f
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x64], edx
mov eax, 0x22a
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, 0x22a
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
xor edx, edx
mov dword [ebp - 0x1c], eax
sub eax, edx
mov ecx, dword [ebp + 0x1c]
jl 0x1011c29c
or eax, ecx
je 0x1011c29c
mov eax, dword [edi + 0xd8]
test eax, eax
je 0x1011c30f
mov esi, ecx
cdq
sub esi, eax
mov eax, dword [ebp - 0x1c]
sbb eax, edx
jl 0x1011c30f
or esi, eax
je 0x1011c30f
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1011cf69
test byte [eax + 0x44], 2
je 0x1011c2e5
mov edx, 0x19
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1011c2d3
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x64], edx
mov eax, 0x19
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, 0x19
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 0x173]
test al, 2
jne 0x1011c326
test al, 1
jne 0x1011c326
test al, 0x10
jne 0x1011c326
test al, 8
je 0x1011c399
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1011cf88
test byte [eax + 0x44], 2
je 0x1011c36f
mov edx, 0x72
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1011c35d
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x64], edx
mov eax, 0x72
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, 0x72
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
test byte [edi + 0x16d], 4
jne 0x1011d006
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x98], ecx
mov dword [edi + 0x9c], eax
mov edx, dword [ebp - 0x18]
and byte [edx + 0x16f], 0xbf
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x80], 0
mov eax, dword [ebp - 0x18]
test byte [eax + 0x171], 0x40
jne 0x1011c3e5
cmp byte [eax + 0x154], 1
je 0x1011cfa7
and byte [eax + 0x16f], 0xdf
push dword [ebp - 0x18]
call fcn.1012f790
add esp, 4
test eax, eax
je 0x1011c462
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1011cfd2
test byte [edx + 0x44], 2
je 0x1011c43d
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x1011c430
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
add dword [eax + 0x98], 1
adc dword [eax + 0x9c], 0
mov edx, dword [ebp - 0x18]
and byte [edx + 0x16f], 0xfb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x50]
test byte [ecx + 0x168], 1
je 0x1011c4a6
test byte [ecx + 0x16b], 8
je 0x1011c4a6
cmp byte [ecx + 0x155], 2
jne 0x1011c4a6
lea edx, [eax + 1]
mov dword [ecx + 0x3c], edx
jmp 0x1011c4a9
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 0x18]
add eax, dword [edx + 0xf8]
mov dword [edx + 0x44], eax
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
call fcn.1011d430
add esp, 0xc
mov ebx, eax
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + 0x16f]
test al, 0x20
je 0x1011c5ac
and eax, 0xffffffdf
mov byte [edx + 0x16f], al
push dword [ebp - 0x18]
call fcn.1012f790
add esp, 4
test eax, eax
je 0x1011c557
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1011cfec
test byte [edx + 0x44], 2
je 0x1011c532
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x1011c525
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
add dword [eax + 0x98], 1
adc dword [eax + 0x9c], 0
mov edx, dword [ebp - 0x18]
and byte [edx + 0x16f], 0xfb
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x50]
test byte [edx + 0x168], 1
je 0x1011c59b
test byte [edx + 0x16b], 8
je 0x1011c59b
cmp byte [edx + 0x155], 2
jne 0x1011c59b
lea eax, [ecx + 1]
mov dword [edx + 0x3c], eax
jmp 0x1011c59e
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xf8]
add ecx, eax
mov dword [edx + 0x44], ecx
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.10123a90
add esp, 8
test eax, eax
jne 0x1011bfd6
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dword [ecx + 0x84], edx
mov edi, dword [ebp - 0x30]
movzx ecx, byte [ebp + 0x10]
and ecx, 1
mov dword [edi + 0xf4], edx
mov edi, dword [ebp - 0x30]
movzx eax, byte [edi + 0x16c]
and eax, 0xfffffffe
or eax, ecx
mov byte [edi + 0x16c], al
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebx]
mov dword [ecx + 0xf4], eax
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebx + 4]
mov dword [eax + 0x84], ebx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x1011c67a
test byte [eax + 0x44], 2
je 0x1011c655
mov dword [eax + 0x38], esi
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], esi
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1011c646
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x64], edx
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push esi
movzx eax, byte [ecx + 0x16c]
push esi
and eax, 7
push eax
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push ecx
push esi
push esi
push 0
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
movsx eax, byte [eax + 2]
cmp eax, 6
je 0x1011cba7
cmp eax, 0x52
je 0x1011cabe
cmp eax, 0x3b
je 0x1011c9ad
cmp eax, 0x3c
je 0x1011c885
cmp eax, 0x51
je 0x1011c79c
cmp eax, 0x53
jne 0x1011c091
push 3
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push 0x53
push dword [edx]
push dword [edx + 4]
call fcn.1011ac60
add esp, 0x14
test eax, eax
jne 0x1011c71f
mov edi, dword [ebp - 0x18]
movzx eax, byte [edi + 0x163]
mov byte [edi + 0x164], al
mov edx, dword [ebp - 0x18]
or byte [edx + 0x173], 0x20
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov byte [eax + 0x163], cl
movsx eax, byte [edx + 4]
jmp 0x1011c08c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1011c782
test byte [edx + 0x44], 2
je 0x1011c75d
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x1011c750
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push 3
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push 0x51
push dword [edx]
push dword [edx + 4]
call fcn.1011ac60
add esp, 0x14
test eax, eax
jne 0x1011c7fd
mov edi, dword [ebp - 0x18]
movzx eax, byte [edi + 0x15f]
mov byte [edi + 0x160], al
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
add edi, 4
or byte [edx + 0x173], 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov byte [eax + 0x15f], cl
add edx, 8
movsx eax, byte [edi]
cmp eax, 0x38
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edx
je 0x1011c860
jmp 0x1011c08c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1011c86b
test byte [edx + 0x44], 2
je 0x1011c83b
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x1011c82e
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, edi
movsx eax, byte [eax + 2]
jmp 0x1011c6c8
push ecx
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push 3
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push 0x3c
push dword [edx]
push dword [edx + 4]
call fcn.1011ac60
add esp, 0x14
test eax, eax
jne 0x1011c925
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x16e]
mov eax, edx
shr edx, 1
and eax, 0xfffffffb
and edx, 1
shl edx, 2
or eax, edx
mov byte [ecx + 0x16e], al
mov edi, dword [ebp - 0x18]
or byte [edi + 0x173], 8
mov eax, dword [ebp - 0x24]
cmp eax, 2
jne 0x1011c8f9
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ebp + 0x12]
shr edx, 2
and edx, 1
movzx eax, byte [ecx + 0x16e]
add edx, edx
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x16e], al
jmp 0x1011c906
cmp eax, 1
mov eax, dword [ebp - 0x18]
and byte [eax + 0x16e], 0xfd
mov edx, dword [ebp - 0x2c]
add edx, 4
mov eax, dword [ebp - 0x30]
add eax, 8
mov dword [ebp - 0x30], eax
movsx eax, byte [edx]
cmp eax, 0x38
mov dword [ebp - 0x2c], edx
je 0x1011c988
jmp 0x1011c08c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1011c993
test byte [edx + 0x44], 2
je 0x1011c963
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x1011c956
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, edx
movsx eax, byte [eax + 2]
jmp 0x1011c6bf
push ecx
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push 3
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push 0x3b
push dword [edx]
push dword [edx + 4]
call fcn.1011ac60
add esp, 0x14
test eax, eax
jne 0x1011ca36
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + 0x159]
mov byte [edx + 0x15a], al
mov ecx, dword [ebp - 0x18]
or byte [ecx + 0x173], 4
mov eax, dword [ebp - 0x24]
cmp eax, 2
je 0x1011ca0d
cmp eax, 1
jne 0x1011c9fc
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x159], 0x27
jmp 0x1011ca17
cmp eax, 3
jne 0x1011ca0d
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x159], 0x22
jmp 0x1011ca17
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x159], 0
mov edx, dword [ebp - 0x2c]
add edx, 4
mov eax, dword [ebp - 0x30]
add eax, 8
mov dword [ebp - 0x30], eax
movsx eax, byte [edx]
cmp eax, 0x38
mov dword [ebp - 0x2c], edx
je 0x1011ca99
jmp 0x1011c08c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1011caa4
test byte [edx + 0x44], 2
je 0x1011ca74
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x1011ca67
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, edx
movsx eax, byte [eax + 2]
jmp 0x1011c6b6
push ecx
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push 3
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push 0x52
push dword [edx]
push dword [edx + 4]
call fcn.1011ac60
add esp, 0x14
test eax, eax
jne 0x1011cb1f
mov edi, dword [ebp - 0x18]
movzx eax, byte [edi + 0x161]
mov byte [edi + 0x162], al
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
add edi, 4
or byte [edx + 0x173], 2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov byte [eax + 0x161], cl
add edx, 8
movsx eax, byte [edi]
cmp eax, 0x38
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edx
je 0x1011cb82
jmp 0x1011c08c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1011cb8d
test byte [edx + 0x44], 2
je 0x1011cb5d
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x1011cb50
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, edi
movsx eax, byte [eax + 2]
jmp 0x1011c6ad
push ecx
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push 3
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push 6
push dword [edx]
push dword [edx + 4]
call fcn.1011ac60
add esp, 0x14
test eax, eax
jne 0x1011cc2f
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x16b]
mov eax, edx
shr edx, 5
and eax, 0xffffffbf
and edx, 1
shl edx, 6
or eax, edx
mov byte [ecx + 0x16b], al
mov edi, dword [ebp - 0x18]
or byte [edi + 0x173], 1
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x1011cc06
cmp eax, 2
jne 0x1011cc06
mov eax, dword [ebp - 0x18]
or byte [eax + 0x16b], 0x20
jmp 0x1011cc10
mov eax, dword [ebp - 0x18]
and byte [eax + 0x16b], 0xdf
mov edx, dword [ebp - 0x2c]
add edx, 4
mov eax, dword [ebp - 0x30]
add eax, 8
mov dword [ebp - 0x30], eax
movsx eax, byte [edx]
cmp eax, 0x38
mov dword [ebp - 0x2c], edx
je 0x1011cc92
jmp 0x1011c08c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1011cc9d
test byte [edx + 0x44], 2
je 0x1011cc6d
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x1011cc60
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, edx
movsx eax, byte [eax + 2]
jmp 0x1011c6a4
push ecx
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 2], 0x4f
jne 0x1011c091
mov eax, dword [ebp - 0x18]
test byte [eax + 0x16b], 4
jne 0x1011cdc3
test byte [eax + 0x169], 0x20
jne 0x1011cd50
mov edx, dword [eax + 0x18]
test edx, edx
je 0x1011ce03
test byte [edx + 0x44], 2
je 0x1011cd26
mov eax, 0x6d
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1011cd14
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x64], edx
mov eax, 0x6d
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, 0x6d
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0x18]
test edx, edx
je 0x1011ce22
test byte [edx + 0x44], 2
je 0x1011cd9c
mov dword [edx + 0x38], 0x6e
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x18]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x64]
test eax, eax
je 0x1011cd8a
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x64], edx
mov eax, 0x6e
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push 0x1f
movzx edx, byte [eax + 0x16c]
push 0x6e
and edx, 7
push edx
push 0xffffffffffffffff
push eax
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx]
add ecx, 0xffffffff
mov edi, dword [edx + 4]
adc edi, 0xffffffff
add edx, 8
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
xor edx, edx
mov ecx, dword [eax + 0xb4]
sub ecx, edx
jl 0x1011ce3e
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
movsx eax, byte [eax]
jmp 0x1011c083
push eax
mov edx, 0x6d
push edx
push edx
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
push 0x1f
push 0x6e
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0x18]
test edx, edx
je 0x1011cead
test byte [edx + 0x44], 2
je 0x1011ce83
mov eax, 0x6f
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1011ce71
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x64], edx
mov eax, 0x6f
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, 0x6f
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
mov edx, 0x6f
push edx
push edx
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
movsx eax, byte [eax + 2]
cmp eax, 0x4e
jne 0x1011c69b
mov eax, edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [ecx + 0xf4], edx
mov edi, dword [eax + 4]
add eax, 8
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [edx + 0x84], edi
mov dword [ebp - 0x2c], eax
movsx eax, byte [eax]
jmp 0x1011c07a
push edi
push 0x1f
push 0x100
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push edi
push 0x1f
push 0x102
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x22a
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x19
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x72
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
test byte [eax + 0x168], 1
je 0x1011cfc6
test byte [eax + 0x16b], 8
je 0x1011cfc6
cmp byte [eax + 0x155], 2
je 0x1011c3e5
or byte [eax + 0x16f], 0x20
jmp 0x1011c47d
push ecx
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x13c]
test edx, edx
mov esi, edx
jne 0x1011d017
mov esi, 0x20000
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x40]
sub ecx, eax
mov dword [ebp - 0x30], ecx
cmp ecx, esi
ja 0x1011d04f
push 0
lea edx, [ebp - 0x28]
push edx
push dword [ebp - 0x30]
push eax
push dword [edi + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, 0xffffffff
je 0x1011d04a
mov eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x1011d0bd
test edx, edx
mov esi, ecx
jne 0x1011d05a
mov edx, 0x20000
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], ebx
mov ebx, eax
push 0
lea edx, [ebp - 0x28]
push edx
push dword [ebp - 0x2c]
push ebx
push dword [edi + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1011d088
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], 0xffffffff
jmp 0x1011d0bd
mov edx, dword [edi + 0x13c]
test edx, edx
mov ecx, dword [ebp - 0x28]
jne 0x1011d09a
mov edx, 0x20000
sub esi, ecx
add ebx, ecx
cmp esi, edx
jae 0x1011d0ab
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x1011d0af
jmp 0x1011d0b3
test esi, esi
je 0x1011d0b3
test ecx, ecx
ja 0x1011d062
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x30]
xor esi, esi
cdq
add eax, dword [edi + 0xc0]
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x40], ecx
adc edx, dword [edi + 0xc4]
add ecx, dword [edi + 0xf8]
and byte [edi + 0x16d], 0xfb
mov dword [edi + 0x44], ecx
mov dword [edi + 0xa8], esi
mov dword [edi + 0xac], esi
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], edx
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], edx
cmp dword [ebp - 0x2c], 0xffffffff
je 0x1011d120
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x1011c3a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x1011d19e
test byte [eax + 0x44], 2
je 0x1011d174
mov edx, 0x26
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1011d162
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x64], edx
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, 0x26
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push ecx
mov eax, 0x26
push eax
push eax
push 1
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edi + 0x168]
mov edx, dword [ebp - 0x2c]
and ecx, 0xfffffffe
shr edx, 7
or ecx, edx
mov byte [edi + 0x168], cl
mov edx, dword [ebp - 0x18]
movzx edi, byte [ebp + 0x12]
shr edi, 2
and edi, 1
add edi, edi
movzx eax, byte [edx + 0x168]
and eax, 0xfffffffd
or eax, edi
mov byte [edx + 0x168], al
movzx eax, byte [ebp + 0x13]
mov edi, eax
shr edi, 3
and edi, 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
movzx ebx, byte [edx + 0x168]
lea ecx, [edi*4]
and ebx, 0xfffffffb
or ebx, ecx
mov byte [edx + 0x168], bl
mov ebx, eax
mov ecx, dword [ebp - 0x18]
shr ebx, 2
and ebx, 1
movzx edx, byte [ecx + 0x168]
shl ebx, 3
and edx, 0xfffffff7
or edx, ebx
mov byte [ecx + 0x168], dl
mov edx, eax
mov ebx, dword [ebp - 0x18]
shr edx, 6
and edx, 1
movzx ecx, byte [ebx + 0x168]
shl edx, 4
and ecx, 0xffffffef
or ecx, edx
mov byte [ebx + 0x168], cl
mov ecx, edi
mov ebx, dword [ebp - 0x18]
shl ecx, 5
shl edi, 3
movzx edx, byte [ebx + 0x168]
and edx, 0xffffffdf
or edx, ecx
mov byte [ebx + 0x168], dl
mov edx, eax
mov ecx, dword [ebp - 0x18]
shr edx, 4
and edx, 1
movzx ebx, byte [ecx + 0x171]
shl edx, 2
and ebx, 0xfffffffb
or ebx, edx
mov byte [ecx + 0x171], bl
mov edx, dword [ebp - 0x18]
shr eax, 5
and eax, 1
movzx ecx, byte [edx + 0x171]
and ecx, 0xfffffff7
or ecx, edi
mov edi, eax
mov byte [edx + 0x171], cl
mov ecx, dword [ebp - 0x18]
shl edi, 6
shl eax, 7
movzx edx, byte [ecx + 0x168]
and edx, 0xffffffbf
or edx, edi
mov byte [ecx + 0x168], dl
mov ecx, esi
mov edi, dword [ebp - 0x18]
shr ecx, 1
and ecx, 1
movzx ebx, byte [edi + 0x168]
and ebx, 0x7f
or ebx, eax
mov eax, esi
mov byte [edi + 0x168], bl
and eax, 1
mov edi, dword [ebp - 0x18]
shl ecx, 5
shr esi, 2
movzx edx, byte [edi + 0x169]
and esi, 3
and edx, 0xfffffffe
add esi, esi
or edx, eax
mov byte [edi + 0x169], dl
mov eax, dword [ebp - 0x18]
movzx ebx, byte [eax + 0x171]
and ebx, 0xffffffdf
or ebx, ecx
mov byte [eax + 0x171], bl
mov edi, dword [ebp - 0x18]
movzx eax, byte [ebp + 0x11]
mov dword [ebp - 0x30], eax
movzx edx, byte [edi + 0x169]
and edx, 0xfffffff9
or edx, esi
mov byte [edi + 0x169], dl
mov eax, dword [ebp - 0x18]
movzx edx, byte [ebp + 0x12]
and edx, 1
mov esi, edx
movzx ecx, byte [eax + 0x16d]
shl esi, 5
and ecx, 0xffffffdf
or ecx, esi
mov byte [eax + 0x16d], cl
test edx, edx
mov ebx, dword [ebp - 0x20]
jne 0x1011d37d
movsx eax, byte [ebp - 0x30]
test eax, eax
je 0x1011d393
cmp eax, 0xffffffff
je 0x1011d393
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
or byte [esi + 0x16d], 0x10
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x158], al
mov eax, 2
push eax
push 1
push eax
push dword [ebp - 0x18]
call fcn.1011bc40
add esp, 0x10
test eax, eax
je 0x1011d40e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1011d416
test byte [edx + 0x44], 2
je 0x1011d3e9
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x1011d3dc
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.10126e40
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x18]
jmp 0x1011c0f4
push ecx
push eax
push eax
push 2
call fcn.1011ee20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret