Function at 0x40ecb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x10]
push 1
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
push edi
push eax
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
push ebx
mov esi, dword [ebp + 0x14]
call fcn.00424340
add esp, 0x10
mov edx, eax
test edx, edx
je 0x40ed3f
test byte [ebp + 0x10], 1
je 0x40ed2e
movzx ecx, byte [ebp + 0x13]
test ecx, 0x80
je 0x40ed1e
lea esi, [ebp + 0x1f]
and esi, 0xfffffffc
lea ecx, [esi + 4]
test byte [ecx - 4], 0x10
je 0x40ed1e
add esi, 7
and esi, 0xfffffffc
mov ecx, dword [esi]
add esi, 7
and esi, 0xfffffffc
cmp byte [ecx], 0x38
mov esi, dword [esi]
jne 0x40ed1e
cmp byte [ecx + 2], 0x4e
je 0x40f401
movzx eax, dx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push str.unknown
push ebx
push 2
push edx
call fcn.00417f60
add esp, 0x10
mov eax, dword [ebp - 0x10]
movzx edx, byte [ebp + 0x10]
mov ebx, edx
and ebx, 1
and edx, 2
movzx ecx, byte [eax + 0x16c]
and ecx, 0xfffffffe
or ecx, ebx
xor ebx, ebx
mov byte [eax + 0x16c], cl
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x16c]
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x16c], al
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x84], ebx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xf4], ebx
mov ebx, dword [ebp - 0x10]
movzx eax, byte [ebp + 0x13]
test eax, 0x80
mov edx, dword [ebx + 0xb8]
mov ecx, dword [ebx + 0xbc]
mov dword [ebx + 0xb0], edx
mov dword [ebx + 0xb4], ecx
je 0x40ee1d
lea eax, [ebp + 0x1f]
and eax, 0xfffffffc
lea edx, [eax + 4]
mov ebx, dword [edx - 4]
test bl, 0x20
je 0x40edca
mov edx, dword [ebp - 0x10]
or byte [edx + 0x173], 0x40
test bl, 0x10
je 0x40ee1f
add eax, 7
and eax, 0xfffffffc
mov edx, dword [eax]
add eax, 7
and eax, 0xfffffffc
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
movsx eax, byte [edx]
cmp eax, 0x38
je 0x40fd23
cmp eax, 0xb
je 0x40fb0b
cmp eax, 0x38
je 0x40f4e0
cmp eax, 1
je 0x40ee1f
push 0x1a6
push str.for_rseq.c
push 2
push 8
call fcn.00417f60
add esp, 0x10
jmp 0x40ee1f
xor ebx, ebx
mov eax, dword [ebp - 0x10]
test byte [eax + 0x169], 0x20
je 0x410200
test byte [eax + 0x16a], 0x40
je 0x40eeae
mov edx, dword [eax + 0x18]
test edx, edx
je 0x40fd61
test byte [edx + 0x44], 2
je 0x40ee84
mov dword [edx + 0x38], 0x100
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x18]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x64]
test eax, eax
je 0x40ee72
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x100
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 0x1f
movzx edx, byte [eax + 0x16c]
push 0x100
and edx, 7
push edx
push 0xffffffffffffffff
push eax
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
test byte [eax + 0x16b], 8
je 0x40ef36
test byte [eax + 0x168], 4
jne 0x40ef36
mov edx, dword [eax + 0x18]
test edx, edx
je 0x40fd80
test byte [edx + 0x44], 2
je 0x40ef0c
mov dword [edx + 0x38], 0x103
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x18]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x64]
test eax, eax
je 0x40eefa
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x103
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 0x1f
movzx edx, byte [eax + 0x16c]
push 0x103
and edx, 7
push edx
push 0xffffffffffffffff
push eax
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movzx edx, byte [eax + 0x173]
test dl, 2
jne 0x40ef51
test dl, 1
jne 0x40ef51
test dl, 0x10
jne 0x40ef51
test dl, 8
je 0x40efc4
mov edx, dword [eax + 0x18]
test edx, edx
je 0x40fd9f
test byte [edx + 0x44], 2
je 0x40ef9a
mov eax, 0x72
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40ef88
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x72
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, 0x72
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
and byte [eax + 0x16f], 0xbf
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x80], 0
mov eax, dword [ebp - 0x10]
test byte [eax + 0x171], 0x40
jne 0x40eff1
cmp byte [eax + 0x154], 1
je 0x40fdbe
and byte [eax + 0x16f], 0xdf
mov ebx, dword [ebp - 0x10]
test byte [ebx + 0x16b], 4
je 0x40f079
test byte [ebx + 0x16d], 4
jne 0x40ffb7
mov edx, dword [ebx + 0xb4]
mov dword [ebp - 0x18], edx
movzx edx, byte [ebx + 0x16c]
mov eax, dword [ebx + 0xc4]
and edx, 8
mov dword [ebp - 0x14], eax
cmp edx, 8
mov ecx, dword [ebx + 0xc0]
mov eax, dword [ebx + 0xb0]
je 0x40fdf9
mov edx, dword [ebx + 0x38]
sub eax, ecx
add edx, dword [ebx + 0xd0]
add edx, eax
mov dword [ebx + 0x3c], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xf0]
test edx, edx
je 0x40f070
mov eax, dword [ecx + 0x3c]
sub edx, eax
add edx, dword [ecx + 0x38]
mov dword [ecx + 0x90], edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x3c]
mov dword [ecx + 0x50], eax
mov ebx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push ebx
call fcn.00437e30
add esp, 0xc
test eax, eax
je 0x40f0f1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x410163
test byte [edx + 0x44], 2
je 0x40f0cc
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x40f0bf
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
test byte [edx + 0x16f], 0x20
jne 0x40f1a8
cmp dword [edx + 0x138], 7
jne 0x40f1a8
movzx eax, byte [edx + 0x170]
test al, 0x40
je 0x40f1a8
and eax, 0xffffffbf
mov byte [edx + 0x170], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x3c]
cmp byte [edx], 0x4b
je 0x41019c
mov edx, dword [eax + 0x18]
test edx, edx
je 0x41017d
test byte [edx + 0x44], 2
je 0x40f17e
mov eax, 0x25d
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40f16c
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x25d
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, 0x25d
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x3c]
mov dword [edx + 0x48], eax
mov edx, dword [ebp - 0x10]
add dword [edx + 0x98], 1
adc dword [edx + 0x9c], 0
mov ecx, dword [ebp - 0x10]
and byte [ecx + 0x16f], 0xfb
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x154], 3
jne 0x40f271
mov edx, dword [eax + 0x48]
movzx ecx, byte [edx + 1]
shl ecx, 8
movzx ebx, byte [edx]
or ebx, ecx
movsx edx, bx
cmp edx, 3
je 0x40f1f5
cmp edx, 1
jne 0x40f1fe
add dword [eax + 0x3c], 2
mov eax, dword [ebp - 0x10]
jmp 0x40f271
mov edx, dword [eax + 0x18]
test edx, edx
je 0x4101a8
test byte [edx + 0x44], 2
je 0x40f247
mov eax, 0x23
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40f235
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x23
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, 0x23
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov byte [eax + 0x15e], 0x83
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push edi
mov dword [eax + 0x144], 0
call fcn.00410480
add esp, 0xc
mov ebx, eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x16f]
test al, 0x20
je 0x40f3f2
and eax, 0xffffffdf
mov byte [edx + 0x16f], al
xor eax, eax
push eax
push eax
push dword [ebp - 0x10]
call fcn.00437e30
add esp, 0xc
test eax, eax
je 0x40f329
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x4101c7
test byte [edx + 0x44], 2
je 0x40f304
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x40f2f7
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
mov dword [edx + 0x48], eax
mov ecx, dword [ebp - 0x10]
add dword [ecx + 0x98], 1
adc dword [ecx + 0x9c], 0
mov esi, dword [ebp - 0x10]
and byte [esi + 0x16f], 0xfb
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x154], 3
jne 0x40f3f2
mov edx, dword [eax + 0x48]
movzx ecx, byte [edx + 1]
shl ecx, 8
movzx esi, byte [edx]
or esi, ecx
movsx edx, si
cmp edx, 3
je 0x40f379
cmp edx, 1
jne 0x40f37f
add dword [eax + 0x3c], 2
jmp 0x40f3f2
mov edx, dword [eax + 0x18]
test edx, edx
je 0x4101e1
test byte [edx + 0x44], 2
je 0x40f3c8
mov eax, 0x23
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40f3b6
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x23
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, 0x23
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x28]
push ecx
push ebx
call fcn.00423d20
mov edx, dword [ebp - 0x24]
add esp, 8
test eax, eax
jne 0x40ed1e
mov edi, dword [ebp - 0x28]
xor ebx, ebx
mov dword [edi + 0x84], ebx
mov ecx, dword [ebp - 0x28]
movzx edi, byte [ebp + 0x10]
and edi, 1
mov dword [ecx + 0xf4], ebx
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0x16c]
and ecx, 0xfffffffe
or ecx, edi
mov byte [eax + 0x16c], cl
mov edi, dword [ebp - 0x28]
mov ecx, dword [esi]
mov dword [edi + 0xf4], ecx
mov ecx, dword [ebp - 0x28]
mov esi, dword [esi + 4]
mov dword [ecx + 0x84], esi
mov esi, dword [ebp - 0x28]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40f4c6
test byte [ecx + 0x44], 2
je 0x40f4a1
mov dword [ecx + 0x38], edx
mov ecx, dword [ebp - 0x28]
mov esi, dword [ecx + 0x18]
mov dword [esi + 0x3c], edx
mov edi, dword [ebp - 0x28]
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x40f492
mov dword [ecx + 4], ebx
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x64], ebx
mov eax, edx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edx
movzx ecx, byte [esi + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push esi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push esi
push edx
push edx
push 0
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
cmp eax, 6
je 0x40f9f7
cmp eax, 0x52
je 0x40f910
cmp eax, 0x3b
je 0x40f801
cmp eax, 0x3c
je 0x40f6cf
cmp eax, 0x51
je 0x40f5e8
cmp eax, 0x53
jne 0x40ee05
push 3
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push 0x53
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x28], edx
call fcn.0040bd60
mov edx, dword [ebp - 0x28]
add esp, 0x14
test eax, eax
jne 0x40f56b
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x163]
mov byte [ecx + 0x164], al
mov eax, dword [ebp - 0x10]
or byte [eax + 0x173], 0x20
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov byte [ecx + 0x163], al
movsx eax, byte [edx + 4]
jmp 0x40ee00
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x40f5ce
test byte [edx + 0x44], 2
je 0x40f5a9
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x40f59c
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 3
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push 0x51
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x28], edx
call fcn.0040bd60
mov edx, dword [ebp - 0x28]
add esp, 0x14
test eax, eax
jne 0x40f649
mov ecx, dword [ebp - 0x10]
add edx, 4
movzx eax, byte [ecx + 0x15f]
mov byte [ecx + 0x160], al
mov eax, dword [ebp - 0x10]
or byte [eax + 0x173], 0x10
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov byte [ecx + 0x15f], al
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 0x20], eax
movsx eax, byte [edx]
cmp eax, 0x38
je 0x40f6ac
jmp 0x40ee00
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x40f6b5
test byte [edx + 0x44], 2
je 0x40f687
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x40f67a
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
jmp 0x40f511
push ecx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 3
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push 0x3c
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x28], edx
call fcn.0040bd60
mov edx, dword [ebp - 0x28]
add esp, 0x14
test eax, eax
jne 0x40f77b
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], edx
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 eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
or byte [eax + 0x173], 8
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jne 0x40f755
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], edx
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
mov edx, dword [ebp - 0x28]
jmp 0x40f762
cmp eax, 1
mov eax, dword [ebp - 0x10]
and byte [eax + 0x16e], 0xfd
add edx, 4
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 0x20], eax
movsx eax, byte [edx]
cmp eax, 0x38
je 0x40f7de
jmp 0x40ee00
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x40f7e7
test byte [edx + 0x44], 2
je 0x40f7b9
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x40f7ac
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
jmp 0x40f508
push ecx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 3
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push 0x3b
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x28], edx
call fcn.0040bd60
mov edx, dword [ebp - 0x28]
add esp, 0x14
test eax, eax
jne 0x40f88a
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x159]
mov byte [ecx + 0x15a], al
mov eax, dword [ebp - 0x10]
or byte [eax + 0x173], 4
mov eax, dword [ebp - 0x1c]
cmp eax, 2
je 0x40f867
cmp eax, 1
jne 0x40f856
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x159], 0x27
jmp 0x40f871
cmp eax, 3
jne 0x40f867
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x159], 0x22
jmp 0x40f871
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x159], 0
add edx, 4
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 0x20], eax
movsx eax, byte [edx]
cmp eax, 0x38
je 0x40f8ed
jmp 0x40ee00
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x40f8f6
test byte [edx + 0x44], 2
je 0x40f8c8
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x40f8bb
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
jmp 0x40f4ff
push ecx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 3
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push 0x52
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x28], edx
call fcn.0040bd60
mov edx, dword [ebp - 0x28]
add esp, 0x14
test eax, eax
jne 0x40f971
mov ecx, dword [ebp - 0x10]
add edx, 4
movzx eax, byte [ecx + 0x161]
mov byte [ecx + 0x162], al
mov eax, dword [ebp - 0x10]
or byte [eax + 0x173], 2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov byte [ecx + 0x161], al
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 0x20], eax
movsx eax, byte [edx]
cmp eax, 0x38
je 0x40f9d4
jmp 0x40ee00
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x40f9dd
test byte [edx + 0x44], 2
je 0x40f9af
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x40f9a2
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
jmp 0x40f4f6
push ecx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 3
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push 6
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x28], edx
call fcn.0040bd60
mov edx, dword [ebp - 0x28]
add esp, 0x14
test eax, eax
jne 0x40fa85
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], edx
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 eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
or byte [eax + 0x173], 1
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x40fa62
cmp eax, 2
jne 0x40fa62
mov eax, dword [ebp - 0x10]
or byte [eax + 0x16b], 0x20
jmp 0x40fa6c
mov eax, dword [ebp - 0x10]
and byte [eax + 0x16b], 0xdf
add edx, 4
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 0x20], eax
movsx eax, byte [edx]
cmp eax, 0x38
je 0x40fae8
jmp 0x40ee00
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x40faf1
test byte [edx + 0x44], 2
je 0x40fac3
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x40fab6
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
jmp 0x40f4ed
push ecx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp byte [edx + 2], 0x4f
jne 0x40ee05
mov eax, dword [ebp - 0x10]
test byte [eax + 0x16b], 4
jne 0x40fc14
test byte [eax + 0x169], 0x20
jne 0x40fba1
mov edx, dword [eax + 0x18]
test edx, edx
je 0x40fc5a
test byte [edx + 0x44], 2
je 0x40fb77
mov eax, 0x6d
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40fb65
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x6d
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0x18]
test edx, edx
je 0x40fc79
test byte [edx + 0x44], 2
je 0x40fbed
mov dword [edx + 0x38], 0x6e
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x18]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x64]
test eax, eax
je 0x40fbdb
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x6e
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
mov ecx, dword [edx]
add ecx, 0xffffffff
mov ebx, dword [edx + 4]
adc ebx, 0xffffffff
add edx, 8
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
xor edx, edx
mov ebx, dword [ebp - 0x24]
mov ecx, dword [eax + 0xb4]
sub ecx, edx
mov edx, dword [ebp - 0x28]
jl 0x40fc95
add edx, 4
movsx eax, byte [edx]
jmp 0x40edf7
push eax
mov edx, 0x6d
push edx
push edx
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
push 0x1f
push 0x6e
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0x18]
test edx, edx
je 0x40fd04
test byte [edx + 0x44], 2
je 0x40fcda
mov eax, 0x6f
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40fcc8
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x6f
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
mov edx, 0x6f
push edx
push edx
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
cmp eax, 0x4e
jne 0x40f4e4
mov eax, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebx + 0xf4], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
add eax, 8
mov dword [ebp - 0x20], eax
mov dword [ebx + 0x84], ecx
movsx eax, byte [edx]
mov ebx, dword [ebp - 0x24]
jmp 0x40edee
push eax
push 0x1f
push 0x100
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
push 0x1f
push 0x103
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
mov edx, 0x72
push edx
push edx
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
test byte [eax + 0x168], 1
je 0x40fddd
test byte [eax + 0x16b], 8
je 0x40fddd
cmp byte [eax + 0x155], 2
je 0x40eff1
cmp dword [eax + 0x138], 7
je 0x40eff1
or byte [eax + 0x16f], 0x20
mov eax, dword [ebp - 0x10]
jmp 0x40f271
mov edx, eax
sub edx, ecx
mov edx, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
jl 0x40fe2f
mov edx, dword [ebx + 0xc8]
add edx, ecx
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebx + 0xcc]
adc ebx, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
sub eax, edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
sbb edx, ebx
mov ebx, dword [ebp - 0x24]
jl 0x40f042
push 0
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
push ecx
push eax
mov ebx, dword [ebx + 0xe4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x40ff92
mov ecx, dword [ebp - 0x24]
mov edx, 0xffffffff
sub eax, edx
sub ecx, edx
or eax, ecx
je 0x40fef2
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0xb0]
mov ecx, dword [ebx + 0xb4]
mov dword [ebx + 0xb8], edx
mov dword [ebx + 0xbc], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0xb0]
mov edx, dword [ecx + 0xb4]
mov dword [ecx + 0xc0], eax
xor eax, eax
mov dword [ecx + 0xc4], edx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xd4], eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0xc8]
mov dword [ebx + 0xf0], ecx
mov edx, dword [ebp - 0x10]
and byte [edx + 0x16d], 0xfd
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x90], eax
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x50], eax
mov ebx, dword [ebp - 0x10]
jmp 0x40f079
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xe8], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40ff73
test byte [eax + 0x44], 2
je 0x40ff49
mov edx, 0x27
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40ff37
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x27
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, 0x27
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push ecx
mov eax, 0x27
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ffac
mov eax, 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
jmp 0x40fef2
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
jmp 0x40fe5b
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebx + 0x38]
jne 0x40ffc9
mov edx, 0x20000
mov ecx, dword [ebx + 0x40]
sub ecx, eax
mov dword [ebp - 0x28], ecx
cmp ecx, edx
ja 0x40fffe
push 0
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0x28]
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, 0xffffffff
je 0x40fff9
mov eax, 1
mov dword [ebp - 0x24], eax
jmp 0x41006c
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], esi
mov esi, ecx
mov dword [ebp - 0x14], edi
mov edi, eax
push 0
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0x24]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410034
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], 0xffffffff
jmp 0x41006c
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 0x20]
jne 0x410046
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x410057
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x41005b
jmp 0x41005f
test esi, esi
je 0x41005f
test eax, eax
ja 0x41000b
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebx + 0xa8], edx
mov dword [ebx + 0xac], edx
cdq
add eax, dword [ebx + 0xc0]
mov ecx, dword [ebx + 0x38]
mov dword [ebx + 0x40], ecx
adc edx, dword [ebx + 0xc4]
add ecx, dword [ebx + 0xf8]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xc4], edx
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0xbc], edx
cmp dword [ebp - 0x24], 0xffffffff
je 0x4100c6
mov ebx, dword [ebp - 0x10]
jmp 0x40f011
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x410144
test byte [eax + 0x44], 2
je 0x41011a
mov edx, 0x26
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x410108
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x26
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push ecx
mov eax, 0x26
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
mov edx, 0x25d
push edx
push edx
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
inc edx
mov dword [eax + 0x3c], edx
mov edx, dword [ebp - 0x10]
jmp 0x40f1a8
push eax
mov edx, 0x23
push edx
push edx
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
mov edx, 0x23
push edx
push edx
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], edi
movzx edx, byte [eax + 0x168]
movzx edi, byte [ebp + 0x10]
and edx, 0xfffffffe
shr edi, 7
or edx, edi
mov byte [eax + 0x168], dl
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
movzx esi, byte [ebp + 0x12]
shr esi, 2
and esi, 1
movzx eax, byte [edi + 0x168]
add esi, esi
and eax, 0xfffffffd
or eax, esi
mov byte [edi + 0x168], al
movzx edi, byte [ebp + 0x13]
mov esi, edi
shr esi, 3
and esi, 1
mov edx, dword [ebp - 0x10]
movzx ecx, byte [edx + 0x168]
lea eax, [esi*4]
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x168], cl
mov ecx, edi
mov edx, dword [ebp - 0x10]
shr ecx, 2
and ecx, 1
movzx eax, byte [edx + 0x168]
shl ecx, 3
and eax, 0xfffffff7
or eax, ecx
mov byte [edx + 0x168], al
mov eax, edi
mov ecx, dword [ebp - 0x10]
shr eax, 6
and eax, 1
movzx edx, byte [ecx + 0x168]
shl eax, 4
and edx, 0xffffffef
or edx, eax
mov byte [ecx + 0x168], dl
mov edx, esi
mov ecx, dword [ebp - 0x10]
shl edx, 5
shl esi, 3
movzx eax, byte [ecx + 0x168]
and eax, 0xffffffdf
or eax, edx
mov byte [ecx + 0x168], al
mov eax, edi
mov edx, dword [ebp - 0x10]
shr eax, 4
and eax, 1
movzx ecx, byte [edx + 0x171]
shl eax, 2
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x171], cl
mov eax, dword [ebp - 0x10]
shr edi, 5
and edi, 1
movzx edx, byte [eax + 0x171]
and edx, 0xfffffff7
or edx, esi
mov esi, edi
mov byte [eax + 0x171], dl
mov edx, dword [ebp - 0x10]
shl esi, 6
shl edi, 7
movzx eax, byte [edx + 0x168]
and eax, 0xffffffbf
or eax, esi
mov esi, ebx
mov byte [edx + 0x168], al
mov eax, dword [ebp - 0x10]
shr esi, 1
and esi, 1
movzx ecx, byte [eax + 0x168]
and ecx, 0x7f
or ecx, edi
mov edi, ebx
mov byte [eax + 0x168], cl
and edi, 1
mov eax, dword [ebp - 0x10]
shl esi, 5
shr ebx, 2
movzx edx, byte [eax + 0x169]
and ebx, 3
and edx, 0xfffffffe
add ebx, ebx
or edx, edi
mov byte [eax + 0x169], dl
mov edi, dword [ebp - 0x10]
movzx ecx, byte [edi + 0x171]
and ecx, 0xffffffdf
or ecx, esi
mov byte [edi + 0x171], cl
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
movzx eax, byte [edx + 0x169]
and eax, 0xfffffff9
or eax, ebx
mov byte [edx + 0x169], al
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ebp + 0x12]
and edx, 1
mov esi, edx
movzx ebx, byte [ecx + 0x16d]
shl esi, 5
and ebx, 0xffffffdf
or ebx, esi
movzx eax, byte [ebp + 0x11]
test edx, edx
mov byte [ecx + 0x16d], bl
mov esi, dword [ebp - 0x18]
jne 0x4103c3
movsx edx, al
test edx, edx
je 0x4103d6
cmp edx, 0xffffffff
je 0x4103d6
mov edx, dword [ebp - 0x10]
or byte [edx + 0x16d], 0x10
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x158], al
push 2
mov eax, 1
push eax
push eax
push dword [ebp - 0x10]
call fcn.0040d710
add esp, 0x10
test eax, eax
je 0x410451
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x410459
test byte [edx + 0x44], 2
je 0x41042c
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x41041f
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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.004299d0
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
jmp 0x40ee2f
push ecx
push eax
push eax
push 2
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret