Function at 0x41b280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
lea eax, [ebp - 0x10]
push 1
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
push ebx
push eax
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], esi
call fcn.00432c10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b30f
test byte [ebp + 0x10], 1
je 0x41b2fe
movzx edx, byte [ebp + 0x13]
test edx, 0x80
je 0x41b2ee
lea ecx, [ebp + 0x23]
and ecx, 0xfffffffc
lea edx, [ecx + 4]
test byte [edx - 4], 0x10
je 0x41b2ee
add ecx, 7
and ecx, 0xfffffffc
mov edx, dword [ecx]
add ecx, 7
and ecx, 0xfffffffc
cmp byte [edx], 0x38
mov ebx, dword [ecx]
jne 0x41b2ee
cmp byte [edx + 2], 0x4e
je 0x41bbae
movzx eax, si
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 edi
push 2
push esi
call fcn.0040b430
add esp, 0x10
mov edi, dword [ebp - 0x10]
movzx ecx, byte [ebp + 0x10]
mov esi, ecx
and esi, 1
and ecx, 2
movzx eax, byte [edi + 0x17c]
and eax, 0xfffffffe
or eax, esi
mov byte [edi + 0x17c], al
mov esi, dword [ebp - 0x10]
movzx edi, byte [ebp + 0x12]
mov eax, edi
shr eax, 5
movzx edx, byte [esi + 0x17c]
and eax, 1
and edx, 0xfffffffd
or edx, ecx
mov byte [esi + 0x17c], dl
mov ecx, dword [ebp - 0x10]
shl eax, 2
shr edi, 1
movzx edx, byte [ecx + 0x17c]
and edi, 0xffffffe0
and edx, 0xfffffffb
or edx, eax
mov byte [ecx + 0x17c], dl
mov esi, dword [ebp - 0x10]
movzx eax, byte [esi + 0x17e]
and eax, 0xffffff9f
or eax, edi
mov byte [esi + 0x17e], al
mov edx, dword [ebp - 0x10]
movzx esi, byte [ebp + 0x13]
mov edi, esi
shl edi, 7
movzx eax, byte [edx + 0x17e]
and eax, 0x7f
or eax, edi
mov byte [edx + 0x17e], al
xor eax, eax
mov ecx, dword [ebp - 0x10]
test esi, 0x80
mov dword [ecx + 0x84], eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xfc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc0]
mov edi, dword [eax + 0xc4]
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], edi
je 0x41b477
lea edx, [ebp + 0x23]
and edx, 0xfffffffc
lea eax, [edx + 4]
mov edi, dword [eax - 4]
test edi, 0x20
je 0x41b3fa
mov eax, dword [ebp - 0x10]
or byte [eax + 0x183], 0x40
test edi, 0x10
je 0x41b479
add edx, 7
and edx, 0xfffffffc
mov esi, dword [edx]
add edx, 7
and edx, 0xfffffffc
cmp byte [esi], 0x38
mov edx, dword [edx]
je 0x41c485
cmp byte [esi], 0xb
je 0x41c276
cmp byte [esi], 0x38
je 0x41c166
cmp byte [esi], 0x38
je 0x41c089
cmp byte [esi], 0x38
je 0x41bf84
cmp byte [esi], 0x38
je 0x41be50
cmp byte [esi], 0x38
je 0x41bd73
cmp byte [esi], 0x38
je 0x41bca5
cmp byte [esi], 1
je 0x41b479
push 0x222
push str.for_rseq_fmt.c
push 2
push 8
call fcn.0040b430
add esp, 0x10
jmp 0x41b479
xor edi, edi
mov eax, dword [ebp - 0x10]
test byte [eax + 0x179], 0x20
je 0x41c8ac
test byte [eax + 0x17a], 0x40
jne 0x41b508
mov edx, dword [eax + 0x18]
test edx, edx
je 0x41c4b1
test byte [edx + 0x44], 2
je 0x41b4de
mov dword [edx + 0x38], 0x101
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 0x41b4cc
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x101
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 + 0x17c]
push 0x101
and edx, 7
push edx
push 0xffffffffffffffff
push eax
call fcn.0043da80
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 + 0x17b], 8
je 0x41b590
test byte [eax + 0x178], 4
jne 0x41b590
mov edx, dword [eax + 0x18]
test edx, edx
je 0x41c4d0
test byte [edx + 0x44], 2
je 0x41b566
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 0x41b554
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 + 0x17c]
push 0x103
and edx, 7
push edx
push 0xffffffffffffffff
push eax
call fcn.0043da80
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 0xac
push 0
mov esi, dword [eax + 0x58]
push esi
call fcn.004cda30
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x171]
test eax, eax
je case.default.0x41b5bc
dec eax
cmp eax, 4
ja case.default.0x41b5bc
jmp dword [eax*4 + 0x4e9f90]
movzx eax, byte [esi + 0xa8]
and eax, 0xffffffc3
or eax, 0x40
mov byte [esi + 0xa8], al
jmp case.default.0x41b5bc
movzx eax, byte [esi + 0xa8]
and eax, 0xffffffa3
or eax, 0x20
mov byte [esi + 0xa8], al
jmp case.default.0x41b5bc
movzx eax, byte [esi + 0xa8]
and eax, 0xffffff93
or eax, 0x10
mov byte [esi + 0xa8], al
jmp case.default.0x41b5bc
movzx eax, byte [esi + 0xa8]
and eax, 0xffffff8b
or eax, 8
mov byte [esi + 0xa8], al
jmp case.default.0x41b5bc
movzx eax, byte [esi + 0xa8]
or eax, 4
and eax, 0xffffff87
mov byte [esi + 0xa8], al
test byte [ebp + 0x10], 8
je 0x41b6dc
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x17c]
test al, 1
jne 0x41b650
test al, 2
jne 0x41b650
not eax
and eax, 4
shr eax, 2
jmp 0x41b652
xor eax, eax
push eax
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 0x1c]
call fcn.0043df50
add esp, 0xc
test eax, eax
je 0x41b6cd
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41c4ef
test byte [edx + 0x44], 2
je 0x41b6a8
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 0x41b69b
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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 - 0x14]
mov dword [esi + 8], eax
or byte [esi + 0xa7], 2
jmp 0x41b6e2
mov eax, dword [ebp + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
test byte [eax + 0x17b], 0x20
je 0x41b6fa
movzx eax, byte [esi + 0xa4]
or eax, 1
jmp 0x41b704
movzx eax, byte [esi + 0xa4]
or eax, 2
mov byte [esi + 0xa4], al
mov eax, dword [ebp - 0x10]
and byte [eax + 0x17e], 0xef
test byte [ebp + 0x12], 8
je 0x41b90f
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1cc]
push eax
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp + 0x18]
push ecx
lea esi, [ebp + 0x14]
push esi
call fcn.00440b60
add esp, 0x10
test eax, eax
jne 0x41b87c
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
push 0
mov esi, dword [ebp - 0x3c]
lea edx, [edi + 1]
push edx
call fcn.00431e20
add esp, 0xc
test eax, eax
jne 0x41b87c
test edi, edi
jle 0x41b792
xor edx, edx
mov dword [ebp - 0x1c], ebx
mov ebx, edx
movsx eax, byte [ebx + esi]
push eax
call fcn.00480220
mov ecx, dword [ebp - 0x20]
add esp, 4
mov byte [ecx + ebx], al
inc ebx
cmp ebx, edi
jl 0x41b777
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov byte [edi + eax], 0
mov ecx, dword [ebp - 0x20]
cmp byte [ecx + edi - 1], 0x20
jne 0x41b7b8
cmp edi, 1
jle 0x41b7b8
mov byte [ecx + edi - 1], 0
dec edi
mov ecx, dword [ebp - 0x20]
cmp byte [ecx + edi - 1], 0x20
je 0x41b7a3
mov edi, 0x4e9d20
mov esi, ecx
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x41b7df
test dl, dl
je 0x41b7db
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x41b7df
add edi, 2
add esi, 2
test dl, dl
jne 0x41b7bf
xor eax, eax
jmp 0x41b7e4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41b7f1
mov dword [ebp - 0x2c], 0
jmp 0x41b828
mov edi, 0x4e9d1c
mov esi, ecx
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x41b818
test dl, dl
je 0x41b814
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x41b818
add edi, 2
add esi, 2
test dl, dl
jne 0x41b7f8
xor eax, eax
jmp 0x41b81d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41b868
mov dword [ebp - 0x2c], 1
push ecx
call fcn.00431ee0
add esp, 4
test eax, eax
jne 0x41b87c
test byte [ebp + 0x12], 0x10
je 0x41b87c
lea eax, [ebp - 0x1cc]
push eax
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp + 0x18]
push ecx
lea esi, [ebp + 0x14]
push esi
call fcn.00440b60
add esp, 0x10
test eax, eax
jne 0x41b87c
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x24], dl
jmp 0x41b87c
push ecx
call fcn.00431ee0
add esp, 4
test eax, eax
jne 0x41b87c
mov eax, 0x30
jmp 0x41b880
test eax, eax
je 0x41b8e7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41c509
test byte [edx + 0x44], 2
je 0x41b8c2
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 0x41b8b5
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
add esp, 0x14
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x28], 0
je 0x41b90f
movsx eax, byte [ebp - 0x24]
add eax, 0xfffffffb
cmp eax, 0xc
jbe 0x41b90f
push 0x2d6
push str.for_rseq_fmt.c
push 2
push 8
call fcn.0040b430
add esp, 0x10
mov esi, dword [ebp - 0x10]
test byte [esi + 0x17b], 4
je 0x41b9b5
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x41b92c
cmp byte [eax + 0x1f], 0
jne 0x41b935
test byte [esi + 0x184], 2
je 0x41b93e
mov dword [ebp - 0x18], 1
jmp 0x41b943
xor eax, eax
mov dword [ebp - 0x18], eax
test byte [esi + 0x17d], 4
jne 0x41c709
mov ecx, dword [esi + 0xbc]
mov edx, dword [esi + 0xc8]
mov edi, dword [esi + 0xcc]
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x1c], ecx
test byte [esi + 0x17c], 8
jne 0x41c53d
mov ecx, dword [esi + 0x38]
sub eax, edx
add ecx, dword [esi + 0xd8]
add ecx, eax
mov dword [esi + 0x3c], ecx
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 0xf8]
test edx, edx
je 0x41b9a6
mov eax, dword [esi + 0x3c]
sub edx, eax
add edx, dword [esi + 0x38]
mov dword [esi + 0x98], edx
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0x18], 0
jne 0x41b9b5
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x50], eax
mov esi, dword [ebp - 0x10]
and byte [esi + 0x184], 0xfd
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x41b9da
cmp byte [edx + 0x1f], 0
je 0x41b9da
mov edx, dword [eax + 0x3c]
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 0x10]
jmp 0x41badd
movzx edx, word [eax + 0x164]
test edx, edx
jg 0x41badd
xor edx, edx
push edx
push edx
push eax
call fcn.00443390
add esp, 0xc
test eax, eax
je 0x41bab6
test byte [ebp + 0x12], 8
je 0x41ba3d
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x41ba3d
movsx edx, byte [ebp - 0x24]
add edx, 0xfffffffb
cmp edx, 0xc
ja case.default.0x41bb4a
jmp dword [edx*4 + 0x4e9fa4]
xor edx, edx
mov dword [ecx], edx
mov dword [ecx + 4], edx
jmp 0x41ba3d
mov dword [ecx], 0
jmp 0x41ba3d
xor edx, edx
mov word [ecx], dx
jmp 0x41ba3d
mov byte [ecx], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41c523
test byte [edx + 0x44], 2
je 0x41ba7f
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 0x41ba72
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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, 0x30
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]
add dword [eax + 0xa0], 1
adc dword [eax + 0xa4], 0
mov edx, dword [ebp - 0x10]
and byte [edx + 0x17f], 0xfb
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x48], ecx
mov eax, dword [ebp - 0x10]
movzx esi, byte [eax + 0x17e]
mov edx, esi
shr esi, 1
and edx, 0xfffffff7
and esi, 1
shl esi, 3
or edx, esi
mov byte [eax + 0x17e], dl
test byte [ebp + 0x12], 8
jne 0x41bb13
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x41bb92
mov byte [eax + 0x1f], 0
jmp 0x41bb92
cmp dword [ebp - 0x2c], 0
je 0x41bb29
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x41bb92
mov byte [eax + 0x1f], 0
jmp 0x41bb92
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 0x28]
test eax, eax
mov byte [edx + 0x1f], 1
je 0x41bb92
movsx edx, byte [ebp - 0x24]
lea ecx, [edx - 5]
cmp ecx, 0xc
ja case.default.0x41bb4a
jmp dword [ecx*4 + 0x4e9fd8]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x41bb6c
mov dword [eax], 0
jmp 0x41bb6c
xor ecx, ecx
mov word [eax], cx
jmp 0x41bb6c
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x114], 0
mov esi, dword [ebp - 0x10]
or byte [esi + 0x17e], 0x10
mov edi, dword [ebp - 0x10]
mov byte [edi + 0x16d], dl
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x6c], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call fcn.0041cb20
add esp, 0xc
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1cc]
push edx
push edi
call fcn.00432ae0
add esp, 8
test eax, eax
jne 0x41b2ee
mov edi, dword [ebp - 0x1cc]
xor ecx, ecx
mov dword [edi + 0x84], ecx
mov edx, dword [ebp - 0x1cc]
movzx edi, byte [ebp + 0x10]
and edi, 1
mov dword [edx + 0xfc], ecx
mov eax, dword [ebp - 0x1cc]
movzx edx, byte [eax + 0x17c]
and edx, 0xfffffffe
or edx, edi
mov byte [eax + 0x17c], dl
mov edi, dword [ebp - 0x1cc]
mov edx, dword [ebx]
mov dword [edi + 0xfc], edx
mov edx, dword [ebp - 0x1cc]
mov ebx, dword [ebx + 4]
mov dword [edx + 0x84], ebx
mov ebx, dword [ebp - 0x1cc]
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x41bc8b
test byte [edx + 0x44], 2
je 0x41bc66
mov dword [edx + 0x38], esi
mov edx, dword [ebp - 0x1cc]
mov ebx, dword [edx + 0x18]
mov dword [ebx + 0x3c], esi
mov edi, dword [ebp - 0x1cc]
mov edx, dword [edi + 0x64]
test edx, edx
je 0x41bc57
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x1cc]
mov dword [edx + 0x64], ecx
mov eax, esi
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push esi
movzx edx, byte [ebx + 0x17c]
push esi
and edx, 7
push edx
push 0xffffffffffffffff
push ebx
call fcn.0043da80
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 ebx
push esi
push esi
push 0
call fcn.00409370
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 [esi + 2], 0x53
jne 0x41b45a
push 3
lea eax, [ebp - 0x4c]
push eax
push 0x53
push dword [edx]
push dword [edx + 4]
call fcn.0042c540
add esp, 0x14
test eax, eax
jne 0x41bcf6
mov ecx, dword [ebp - 0x10]
add esi, 4
movzx edx, byte [ecx + 0x175]
mov byte [ecx + 0x176], dl
mov eax, dword [ebp - 0x10]
or byte [eax + 0x183], 0x20
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
mov byte [edx + 0x175], al
jmp 0x41b45a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41bd59
test byte [edx + 0x44], 2
je 0x41bd34
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 0x41bd27
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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.00409370
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 [esi + 2], 0x51
jne 0x41b451
push 3
lea eax, [ebp - 0x4c]
push eax
push 0x51
push dword [edx]
push dword [edx + 4]
mov dword [ebp - 0x1cc], edx
call fcn.0042c540
mov edx, dword [ebp - 0x1cc]
add esp, 0x14
test eax, eax
jne 0x41bdd3
mov ecx, dword [ebp - 0x10]
add esi, 4
add edx, 8
movzx eax, byte [ecx + 0x171]
mov byte [ecx + 0x172], al
mov eax, dword [ebp - 0x10]
or byte [eax + 0x183], 0x10
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
mov byte [ecx + 0x171], al
jmp 0x41b451
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41be36
test byte [edx + 0x44], 2
je 0x41be11
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 0x41be04
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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.00409370
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 [esi + 2], 0x3c
jne 0x41b448
push 3
lea eax, [ebp - 0x4c]
push eax
push 0x3c
push dword [edx]
push dword [edx + 4]
mov dword [ebp - 0x1cc], edx
call fcn.0042c540
mov edx, dword [ebp - 0x1cc]
add esp, 0x14
test eax, eax
jne 0x41bf07
mov dword [ebp - 0x1c8], edi
mov edi, dword [ebp - 0x10]
movzx ecx, byte [edi + 0x17e]
mov eax, ecx
shr ecx, 1
and eax, 0xfffffffb
and ecx, 1
shl ecx, 2
or eax, ecx
mov byte [edi + 0x17e], al
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c8]
or byte [eax + 0x183], 8
mov eax, dword [ebp - 0x4c]
cmp eax, 2
jne 0x41beef
mov dword [ebp - 0x1c8], edi
mov edi, dword [ebp - 0x10]
movzx ecx, byte [ebp + 0x12]
shr ecx, 2
and ecx, 1
movzx eax, byte [edi + 0x17e]
add ecx, ecx
and eax, 0xfffffffd
or eax, ecx
mov byte [edi + 0x17e], al
mov edi, dword [ebp - 0x1c8]
jmp 0x41befc
cmp eax, 1
mov eax, dword [ebp - 0x10]
and byte [eax + 0x17e], 0xfd
add esi, 4
add edx, 8
jmp 0x41b448
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41bf6a
test byte [edx + 0x44], 2
je 0x41bf45
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 0x41bf38
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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.00409370
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 [esi + 2], 0x3b
jne 0x41b43f
push 3
lea eax, [ebp - 0x4c]
push eax
push 0x3b
push dword [edx]
push dword [edx + 4]
mov dword [ebp - 0x1cc], edx
call fcn.0042c540
mov edx, dword [ebp - 0x1cc]
add esp, 0x14
test eax, eax
jne 0x41c00c
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x16b]
mov byte [ecx + 0x16c], al
mov eax, dword [ebp - 0x10]
or byte [eax + 0x183], 4
mov eax, dword [ebp - 0x4c]
cmp eax, 2
je 0x41bff7
cmp eax, 1
jne 0x41bfe6
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x16b], 0x27
jmp 0x41c001
cmp eax, 3
jne 0x41bff7
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x16b], 0x22
jmp 0x41c001
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x16b], 0
add esi, 4
add edx, 8
jmp 0x41b43f
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41c06f
test byte [edx + 0x44], 2
je 0x41c04a
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 0x41c03d
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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.00409370
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 [esi + 2], 0x52
jne 0x41b436
push 3
lea eax, [ebp - 0x4c]
push eax
push 0x52
push dword [edx]
push dword [edx + 4]
mov dword [ebp - 0x1cc], edx
call fcn.0042c540
mov edx, dword [ebp - 0x1cc]
add esp, 0x14
test eax, eax
jne 0x41c0e9
mov ecx, dword [ebp - 0x10]
add esi, 4
add edx, 8
movzx eax, byte [ecx + 0x173]
mov byte [ecx + 0x174], al
mov eax, dword [ebp - 0x10]
or byte [eax + 0x183], 2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
mov byte [ecx + 0x173], al
jmp 0x41b436
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41c14c
test byte [edx + 0x44], 2
je 0x41c127
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 0x41c11a
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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.00409370
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 [esi + 2], 6
jne 0x41b42d
push 3
lea eax, [ebp - 0x4c]
push eax
push 6
push dword [edx]
push dword [edx + 4]
mov dword [ebp - 0x1cc], edx
call fcn.0042c540
mov edx, dword [ebp - 0x1cc]
add esp, 0x14
test eax, eax
jne 0x41c1f9
mov dword [ebp - 0x1c8], edi
mov edi, dword [ebp - 0x10]
movzx ecx, byte [edi + 0x17b]
mov eax, ecx
shr ecx, 5
and eax, 0xffffffbf
and ecx, 1
shl ecx, 6
or eax, ecx
mov byte [edi + 0x17b], al
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c8]
or byte [eax + 0x183], 1
mov eax, dword [ebp - 0x4c]
cmp eax, 1
je 0x41c1e4
cmp eax, 2
jne 0x41c1e4
mov eax, dword [ebp - 0x10]
or byte [eax + 0x17b], 0x20
jmp 0x41c1ee
mov eax, dword [ebp - 0x10]
and byte [eax + 0x17b], 0xdf
add esi, 4
add edx, 8
jmp 0x41b42d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41c25c
test byte [edx + 0x44], 2
je 0x41c237
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 0x41c22a
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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.00409370
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 [esi + 2], 0x4f
jne 0x41b424
mov eax, dword [ebp - 0x10]
test byte [eax + 0x17b], 4
jne 0x41c37f
test byte [eax + 0x179], 0x20
jne 0x41c30c
mov edx, dword [eax + 0x18]
test edx, edx
je 0x41c3bc
test byte [edx + 0x44], 2
je 0x41c2e2
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 0x41c2d0
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 + 0x17c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.0043da80
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 0x41c3db
test byte [edx + 0x44], 2
je 0x41c358
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 0x41c346
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 + 0x17c]
push 0x6e
and edx, 7
push edx
push 0xffffffffffffffff
push eax
call fcn.0043da80
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 ecx, dword [edx]
add ecx, 0xffffffff
mov dword [ebp - 0x1c8], edi
mov edi, dword [edx + 4]
adc edi, 0xffffffff
add edx, 8
mov dword [eax + 0xb8], ecx
xor ecx, ecx
mov dword [eax + 0xbc], edi
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 0xbc]
sub edi, ecx
mov edi, dword [ebp - 0x1c8]
jl 0x41c3f7
add esi, 4
jmp 0x41b424
push eax
mov edx, 0x6d
push edx
push edx
push 1
call fcn.00409370
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.00409370
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 0x41c466
test byte [edx + 0x44], 2
je 0x41c43c
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 0x41c42a
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 + 0x17c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.0043da80
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.00409370
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 [esi + 2], 0x4e
jne 0x41b41b
mov ecx, dword [ebp - 0x10]
add esi, 4
mov eax, dword [edx]
mov dword [ecx + 0xfc], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add edx, 8
mov dword [ecx + 0x84], eax
jmp 0x41b41b
push eax
push 0x1f
push 0x101
push 1
call fcn.00409370
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.00409370
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.00409370
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.00409370
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.00409370
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 ecx, eax
sub ecx, edx
mov ecx, dword [ebp - 0x1c]
sbb ecx, edi
jl 0x41c56d
mov ecx, dword [esi + 0xd0]
add ecx, edx
mov dword [ebp - 0x48], esi
mov esi, dword [esi + 0xd4]
adc esi, edi
mov edi, eax
sub edi, ecx
mov ecx, dword [ebp - 0x1c]
sbb ecx, esi
mov esi, dword [ebp - 0x48]
jl 0x41b978
push 0
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push ecx
push eax
mov esi, dword [esi + 0xec]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
mov dword [ebp - 0x48], ecx
cmp ecx, 0xffffffff
je 0x41c6e4
mov edx, dword [ebp - 0x44]
mov eax, 0xffffffff
sub ecx, eax
sub edx, eax
or ecx, edx
je 0x41c644
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0xc0], edx
mov dword [esi + 0xc4], ecx
mov edx, dword [ebp - 0x10]
mov edi, dword [edx + 0xb8]
mov eax, dword [edx + 0xbc]
mov dword [edx + 0xc8], edi
mov dword [edx + 0xcc], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xd8], eax
mov dword [ecx + 0xdc], eax
mov esi, dword [ebp - 0x10]
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], eax
mov edx, dword [ebp - 0x10]
mov edi, dword [edx + 0xd0]
mov dword [edx + 0xf8], edi
mov ecx, dword [ebp - 0x10]
and byte [ecx + 0x17d], 0xfd
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x98], eax
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x50], eax
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x41b9b5
mov byte [eax + 0x1f], 0
mov esi, dword [ebp - 0x10]
jmp 0x41b9b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xf0], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41c6c5
test byte [eax + 0x44], 2
je 0x41c69b
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 0x41c689
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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.00409370
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 0x41c6fe
mov eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
jmp 0x41c644
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
jmp 0x41c59b
mov eax, dword [esi + 0x148]
test eax, eax
mov edx, dword [esi + 0x38]
jne 0x41c71b
mov eax, 0x20000
mov ecx, dword [esi + 0x40]
sub ecx, edx
mov dword [ebp - 0x48], ecx
cmp ecx, eax
ja 0x41c750
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
push edx
push dword [esi + 0xec]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, 0xffffffff
je 0x41c74b
mov eax, 1
mov dword [ebp - 0x44], eax
jmp 0x41c7b5
mov edi, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x1c], ebx
mov ebx, edx
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
push ebx
push dword [esi + 0xec]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41c780
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], 0xffffffff
jmp 0x41c7b5
mov eax, dword [esi + 0x148]
test eax, eax
mov ecx, dword [ebp - 0x40]
jne 0x41c792
mov eax, 0x20000
sub edi, ecx
add ebx, ecx
cmp edi, eax
jae 0x41c7a3
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x41c7a7
jmp 0x41c7ab
test edi, edi
je 0x41c7ab
test ecx, ecx
ja 0x41c75a
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x48]
xor edi, edi
cdq
add eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x40], ecx
adc edx, dword [esi + 0xcc]
add ecx, dword [esi + 0x100]
and byte [esi + 0x17d], 0xfb
mov dword [esi + 0x44], ecx
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], edx
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], edx
cmp dword [ebp - 0x44], 0xffffffff
je 0x41c80f
mov esi, dword [ebp - 0x10]
jmp 0x41b950
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf0], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41c88d
test byte [eax + 0x44], 2
je 0x41c863
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 0x41c851
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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.00409370
add esp, 0x10
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 + 0x178]
movzx esi, byte [ebp + 0x10]
and edx, 0xfffffffe
shr esi, 7
or edx, esi
mov byte [eax + 0x178], dl
mov esi, dword [ebp - 0x10]
movzx eax, byte [ebp + 0x12]
shr eax, 2
and eax, 1
movzx edx, byte [esi + 0x178]
add eax, eax
and edx, 0xfffffffd
or edx, eax
movzx eax, byte [ebp + 0x13]
mov byte [esi + 0x178], dl
mov esi, eax
shr esi, 3
and esi, 1
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
movzx ebx, byte [edx + 0x178]
lea ecx, [esi*4]
and ebx, 0xfffffffb
or ebx, ecx
mov byte [edx + 0x178], bl
mov ebx, eax
mov ecx, dword [ebp - 0x10]
shr ebx, 2
and ebx, 1
movzx edx, byte [ecx + 0x178]
shl ebx, 3
and edx, 0xfffffff7
or edx, ebx
mov byte [ecx + 0x178], dl
mov edx, eax
mov ebx, dword [ebp - 0x10]
shr edx, 6
and edx, 1
movzx ecx, byte [ebx + 0x178]
shl edx, 4
and ecx, 0xffffffef
or ecx, edx
mov byte [ebx + 0x178], cl
mov ecx, esi
mov ebx, dword [ebp - 0x10]
shl ecx, 5
shl esi, 3
movzx edx, byte [ebx + 0x178]
and edx, 0xffffffdf
or edx, ecx
mov byte [ebx + 0x178], dl
mov edx, eax
mov ecx, dword [ebp - 0x10]
shr edx, 4
and edx, 1
movzx ebx, byte [ecx + 0x181]
shl edx, 2
and ebx, 0xfffffffb
or ebx, edx
mov byte [ecx + 0x181], bl
mov edx, dword [ebp - 0x10]
shr eax, 5
and eax, 1
movzx ecx, byte [edx + 0x181]
and ecx, 0xfffffff7
or ecx, esi
mov esi, eax
mov byte [edx + 0x181], cl
mov ecx, dword [ebp - 0x10]
shl esi, 6
shl eax, 7
movzx edx, byte [ecx + 0x178]
and edx, 0xffffffbf
or edx, esi
mov byte [ecx + 0x178], dl
mov ecx, edi
mov esi, dword [ebp - 0x10]
shr ecx, 1
and ecx, 1
movzx ebx, byte [esi + 0x178]
and ebx, 0x7f
or ebx, eax
mov eax, edi
mov byte [esi + 0x178], bl
and eax, 1
mov esi, dword [ebp - 0x10]
shl ecx, 5
movzx edx, byte [esi + 0x179]
and edx, 0xfffffffe
or edx, eax
mov byte [esi + 0x179], dl
mov esi, edi
mov eax, dword [ebp - 0x10]
shr esi, 2
and esi, 3
movzx ebx, byte [eax + 0x181]
add esi, esi
and ebx, 0xffffffdf
or ebx, ecx
mov byte [eax + 0x181], bl
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
movzx edx, byte [eax + 0x179]
and edx, 0xfffffff9
or edx, esi
mov byte [eax + 0x179], dl
mov eax, edi
mov edx, dword [ebp - 0x10]
shr edi, 9
and edi, 1
movzx ecx, byte [edx + 0x184]
shl edi, 3
and ecx, 0xfffffff7
or ecx, edi
mov byte [edx + 0x184], cl
mov ecx, dword [ebp - 0x10]
shr eax, 0xa
movzx edx, byte [ecx + 0x184]
test dl, 0x10
jne 0x41ca7c
and eax, 1
and edx, 0xffffffef
shl eax, 4
or edx, eax
mov byte [ecx + 0x184], dl
mov ecx, dword [ebp - 0x10]
mov eax, 1
push eax
push eax
push eax
push ecx
call fcn.0042d3a0
add esp, 0x10
test eax, eax
je 0x41caf4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41cafc
test byte [edx + 0x44], 2
je 0x41cacf
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 0x41cac2
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 + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043da80
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 0x41b489
push ecx
push eax
push eax
push 2
call fcn.00409370
add esp, 0x10
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret