Function at 0x5b4d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp edi, 0xfffffffb
je 0x5b695a
push 5
push esi
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.005e0a20
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x5b4e11
movzx ecx, byte [ebp + 0x13]
lea edx, [ebp + 0x1c]
and ecx, 0x80
mov dword [ebp - 0x28], edx
shr ecx, 7
mov dword [ebp - 0x30], ecx
je 0x5b4db1
lea edx, [ebp + 0x1f]
and edx, 0xfffffffc
add edx, 4
mov dword [ebp - 0x28], edx
mov eax, dword [edx - 4]
jmp 0x5b4db3
xor eax, eax
mov edx, eax
shr edx, 0xf
movzx ecx, byte [ebp + 0x10]
and edx, 1
and ecx, 1
mov dword [ebp - 0x2c], edx
or ecx, edx
je 0x5b4e00
cmp dword [ebp - 0x30], 0
je 0x5b4df5
test al, 0x10
je 0x5b4df5
mov edx, dword [ebp - 0x28]
add edx, 3
and edx, 0xfffffffc
mov ecx, dword [edx]
add edx, 7
and edx, 0xfffffffc
cmp byte [ecx], 0x38
mov esi, dword [edx]
jne 0x5b4df5
cmp byte [ecx + 2], 0x4e
je 0x5b5b01
movzx eax, bx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push str.unknown
push edi
push 2
push ebx
call fcn.005b16e0
add esp, 0x10
mov ecx, dword [ebp - 0x14]
test byte [ecx + 0x1a2], 0x40
je 0x5b4f00
mov edx, dword [ecx + 0x94]
test edx, edx
je 0x5b4f00
cmp byte [edx + 0x1e], 0
je 0x5b4f00
movzx eax, word [ecx + 0x18a]
test eax, eax
jg 0x5b4f00
mov ebx, dword [edx + 0xc]
cmp ebx, ecx
je 0x5b4f00
movzx eax, byte [ebx + 0x1a5]
test al, 0x40
je 0x5b4e6b
cmp byte [ebx + 0x18e], 1
je 0x5b6923
push ebx
call fcn.005e4d30
add esp, 4
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x94]
test edx, edx
je 0x5b4e85
mov byte [edx + 0x1e], 0
test eax, eax
je 0x5b4ee8
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x5b5c00
test byte [edx + 0x44], 2
je 0x5b4eba
mov dword [edx + 0x38], eax
mov edx, dword [ebx + 0x20]
mov dword [edx + 0x3c], eax
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x5b4eb2
xor ecx, ecx
mov dword [edx + 4], ecx
mov dword [ebx + 0x7c], ecx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push eax
movzx eax, byte [ebx + 0x1ae]
and eax, 0x10
movzx edx, byte [ebx + 0x1a4]
shr eax, 1
and edx, 7
or edx, eax
push edx
push 0xffffffffffffffff
push ebx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
add dword [ebx + 0xb8], 1
adc dword [ebx + 0xbc], 0
and byte [ebx + 0x1a7], 0xfb
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ebp + 0x10]
mov ebx, eax
movzx edx, byte [ecx + 0x1a4]
and ebx, 1
and edx, 0xfffffffe
and eax, 2
or edx, ebx
mov byte [ecx + 0x1a4], dl
mov ebx, dword [ebp - 0x14]
movzx ecx, byte [ebp + 0x12]
shr ecx, 5
and ecx, 1
movzx edx, byte [ebx + 0x1a4]
shl ecx, 2
and edx, 0xfffffffb
or edx, ecx
mov byte [ebx + 0x1a4], dl
mov edx, dword [ebp - 0x14]
movzx ecx, byte [edx + 0x1a4]
and ecx, 0xfffffffd
or ecx, eax
mov byte [edx + 0x1a4], cl
movzx ecx, byte [ebp + 0x13]
mov eax, ecx
mov edx, dword [ebp - 0x14]
shr eax, 1
and eax, 1
movzx ebx, byte [edx + 0x1a7]
shl eax, 3
and ebx, 0xfffffff7
or ebx, eax
mov byte [edx + 0x1a7], bl
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x9c], ebx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x114], ebx
mov edx, dword [ebp - 0x14]
and byte [edx + 0x1ad], 0xf7
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx + 0xd8]
mov eax, dword [edx + 0xdc]
mov dword [edx + 0xd0], ebx
mov dword [edx + 0xd4], eax
mov eax, dword [ebp - 0x14]
test ecx, 0x80
je 0x5b5124
lea ecx, [ebp + 0x1f]
and ecx, 0xfffffffc
lea edx, [ecx + 4]
mov ebx, dword [edx - 4]
test eax, eax
je 0x5b5126
test bl, 0x20
je 0x5b4fe3
or byte [eax + 0x1ab], 0x40
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ad], 0xbf
test ebx, 0x2000
je 0x5b4ffc
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ad], 0x40
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ad], 0x7f
test ebx, 0x4000
je 0x5b5018
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ad], 0x80
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ae], 0xef
test ebx, 0x8000
je 0x5b5034
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ae], 0x10
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ae], 0xdf
test ebx, 0x10000
je 0x5b5050
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ae], 0x20
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ae], 0xbf
test ebx, 0x20000
je 0x5b506c
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ae], 0x40
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ae], 0x7f
test ebx, 0x40000
je 0x5b5088
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ae], 0x80
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1af], 0xfe
test ebx, 0x80000
je 0x5b50a4
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1af], 1
test bl, 0x10
je 0x5b511f
add ecx, 7
and ecx, 0xfffffffc
mov edx, dword [ecx]
add ecx, 7
and ecx, 0xfffffffc
cmp byte [edx], 0x38
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
je 0x5b64ac
cmp byte [edx], 0xb
je 0x5b61f6
cmp byte [edx], 0x38
je 0x5b60ef
cmp byte [edx], 0x38
je 0x5b6015
cmp byte [edx], 0x38
je 0x5b5f13
cmp byte [edx], 0x38
je 0x5b5dc5
cmp byte [edx], 0x38
je 0x5b5ceb
cmp byte [edx], 0x38
je 0x5b5c15
cmp byte [edx], 1
je 0x5b511f
push 0x3cb
push str.for_wseq_lis.c
push 2
push 8
call fcn.005b16e0
add esp, 0x10
mov eax, dword [ebp - 0x14]
jmp 0x5b5126
xor ebx, ebx
mov dword [eax + 0x150], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5b5142
movzx edx, word [eax + 0x18a]
test edx, edx
jg 0x5b514f
mov dword [eax + 0x154], 0
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1a1], 0x20
jne 0x5b549a
cmp dword [eax + 0x124], 0xfffffffb
je 0x5b549a
mov dword [ebp - 0x2c], edi
movzx edx, byte [eax + 0x1a0]
movzx edi, byte [ebp + 0x10]
and edx, 0xfffffffe
shr edi, 7
or edx, edi
mov byte [eax + 0x1a0], dl
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
movzx esi, byte [ebp + 0x12]
shr esi, 2
and esi, 1
movzx eax, byte [edi + 0x1a0]
add esi, esi
and eax, 0xfffffffd
or eax, esi
mov byte [edi + 0x1a0], al
movzx edi, byte [ebp + 0x13]
mov esi, edi
shr esi, 3
and esi, 1
mov edx, dword [ebp - 0x14]
movzx ecx, byte [edx + 0x1a0]
lea eax, [esi*4]
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x1a0], cl
mov ecx, edi
mov edx, dword [ebp - 0x14]
shr ecx, 2
and ecx, 1
movzx eax, byte [edx + 0x1a0]
shl ecx, 3
and eax, 0xfffffff7
or eax, ecx
mov byte [edx + 0x1a0], al
mov eax, edi
mov ecx, dword [ebp - 0x14]
shr eax, 6
and eax, 1
movzx edx, byte [ecx + 0x1a0]
shl eax, 4
and edx, 0xffffffef
or edx, eax
mov byte [ecx + 0x1a0], dl
mov edx, esi
mov ecx, dword [ebp - 0x14]
shl edx, 5
shl esi, 3
movzx eax, byte [ecx + 0x1a0]
and eax, 0xffffffdf
or eax, edx
mov byte [ecx + 0x1a0], al
mov eax, edi
mov edx, dword [ebp - 0x14]
shr eax, 4
and eax, 1
movzx ecx, byte [edx + 0x1a9]
shl eax, 2
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x1a9], cl
mov eax, dword [ebp - 0x14]
shr edi, 5
and edi, 1
movzx edx, byte [eax + 0x1a9]
and edx, 0xfffffff7
or edx, esi
mov esi, edi
mov byte [eax + 0x1a9], dl
mov edx, dword [ebp - 0x14]
shl esi, 6
shl edi, 7
movzx eax, byte [edx + 0x1a0]
and eax, 0xffffffbf
or eax, esi
mov byte [edx + 0x1a0], al
mov edx, ebx
mov esi, dword [ebp - 0x14]
shr edx, 1
and edx, 1
movzx ecx, byte [esi + 0x1a0]
and ecx, 0x7f
or ecx, edi
mov edi, ebx
mov byte [esi + 0x1a0], cl
and edi, 1
mov esi, dword [ebp - 0x14]
mov ecx, ebx
shl edx, 5
shr ecx, 2
movzx eax, byte [esi + 0x1a1]
and ecx, 3
and eax, 0xfffffffe
add ecx, ecx
or eax, edi
mov byte [esi + 0x1a1], al
mov edi, dword [ebp - 0x14]
movzx eax, byte [edi + 0x1a9]
and eax, 0xffffffdf
or eax, edx
mov edx, ebx
mov byte [edi + 0x1a9], al
mov edi, ebx
mov esi, dword [ebp - 0x14]
shr edx, 9
and edx, 1
movzx eax, byte [esi + 0x1a1]
and eax, 0xfffffff9
or eax, ecx
mov byte [esi + 0x1a1], al
mov esi, ebx
mov ecx, dword [ebp - 0x14]
and esi, 0xffffff80
shl edx, 3
shr edi, 0xa
movzx eax, byte [ecx + 0x1ac]
and eax, 0xfffffff7
or eax, edx
mov byte [ecx + 0x1ac], al
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0x14]
movzx eax, byte [edi + 0x1ab]
and eax, 0x7f
or eax, esi
mov esi, ebx
mov byte [edi + 0x1ab], al
mov eax, ebx
mov ecx, dword [ebp - 0x14]
mov edi, ebx
shr esi, 7
and esi, 0xffffff80
movzx edx, byte [ecx + 0x1ad]
and edx, 0x7f
or edx, esi
mov byte [ecx + 0x1ad], dl
mov esi, dword [ebp - 0x14]
shr eax, 0xf
and eax, 1
movzx edx, byte [esi + 0x1ae]
shl eax, 4
and edx, 0xffffffef
or edx, eax
mov byte [esi + 0x1ae], dl
mov esi, dword [ebp - 0x14]
shr edi, 0x10
and edi, 1
movzx ecx, byte [esi + 0x1ae]
shl edi, 5
and ecx, 0xffffffdf
or ecx, edi
mov edi, ebx
mov byte [esi + 0x1ae], cl
mov esi, ebx
mov edx, dword [ebp - 0x14]
shr edi, 0x11
and edi, 1
movzx eax, byte [edx + 0x1ae]
shl edi, 6
and eax, 0xffffffbf
or eax, edi
mov edi, ebx
mov byte [edx + 0x1ae], al
mov ecx, dword [ebp - 0x14]
shr esi, 0xb
and esi, 0xffffff80
movzx eax, byte [ecx + 0x1ae]
and eax, 0x7f
or eax, esi
mov byte [ecx + 0x1ae], al
mov edx, dword [ebp - 0x14]
shr edi, 0x13
and edi, 1
movzx eax, byte [edx + 0x1af]
and eax, 0xfffffffe
or eax, edi
mov byte [edx + 0x1af], al
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x1ac]
btr eax, 4
jb 0x5b5416
mov ecx, dword [ebp - 0x30]
and ecx, 1
shl ecx, 4
or eax, ecx
mov byte [edx + 0x1ac], al
mov edx, dword [ebp - 0x14]
mov eax, 1
push eax
push 4
push eax
push edx
call fcn.005c6ba0
add esp, 0x10
test eax, eax
je 0x5b5497
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5b64eb
test byte [edx + 0x44], 2
je 0x5b5469
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x5b5461
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x7c], ecx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push eax
movzx eax, byte [ecx + 0x1ae]
and eax, 0x10
movzx edx, byte [ecx + 0x1a4]
shr eax, 1
and edx, 7
or edx, eax
push edx
push 0xffffffffffffffff
push ecx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1ac], 0x10
je 0x5b54c1
mov edx, dword [eax + 0x10c]
mov dword [eax + 0x118], edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x10c]
mov dword [ecx + 0x184], eax
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1a1], 0x40
jne 0x5b6896
movzx ecx, byte [eax + 0x1a3]
test cl, 0x10
jne 0x5b6809
test byte [eax + 0x1a2], 0x40
jne 0x5b557d
cmp edi, 0xfffffffb
je 0x5b557d
test eax, eax
je 0x5b5503
movzx edx, word [eax + 0x18a]
test edx, edx
jg 0x5b557d
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5b6500
test byte [edx + 0x44], 2
je 0x5b554a
mov dword [edx + 0x38], 0x101
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x5b553d
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, 0x101
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx edx, byte [eax + 0x1ae]
and edx, 0x10
movzx ecx, byte [eax + 0x1a4]
push 0x1f
shr edx, 1
and ecx, 7
push 0x101
or ecx, edx
push ecx
push 0xffffffffffffffff
push eax
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test cl, 8
je 0x5b5609
test byte [eax + 0x1a0], 4
jne 0x5b5609
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5b651a
test byte [edx + 0x44], 2
je 0x5b55d6
mov dword [edx + 0x38], 0x103
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x5b55c9
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, 0x103
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx edx, byte [eax + 0x1ae]
and edx, 0x10
movzx ecx, byte [eax + 0x1a4]
push 0x1f
shr edx, 1
and ecx, 7
push 0x103
or ecx, edx
push ecx
push 0xffffffffffffffff
push eax
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edi, dword [eax + 0x74]
mov eax, 0x28
mov dword [edi + 0x28], 0
xor edx, edx
mov dword [edi + eax - 4], edx
mov dword [edi + eax - 8], edx
mov dword [edi + eax - 0xc], edx
mov dword [edi + eax - 0x10], edx
mov dword [edi + eax - 0x14], edx
sub eax, 0x14
jne 0x5b561a
shr ebx, 0xc
and ebx, 1
movzx edx, byte [edi + 0x2b]
shl ebx, 4
and edx, 0xffffffef
mov eax, dword [ebp - 0x14]
or edx, ebx
mov dword [edi], eax
mov byte [edi + 0x2b], dl
mov ebx, dword [ebp - 0x14]
test byte [ebx + 0x1a3], 4
je 0x5b578b
mov edx, dword [ebx + 0xd0]
mov eax, dword [ebx + 0xd4]
sub edx, dword [ebx + 0xd8]
sub eax, dword [ebx + 0xdc]
or edx, eax
je 0x5b574f
test byte [ebx + 0x1a5], 4
jne 0x5b65f8
push 0
mov edx, dword [ebx + 0xd0]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebx + 0xd4]
push edx
push dword [ebx + 0x104]
mov dword [ebp - 0x1c], edx
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xffffffff
je 0x5b65d3
mov edx, dword [ebp - 0x18]
mov eax, 0xffffffff
sub ecx, eax
sub edx, eax
or ecx, edx
je 0x5b6534
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x5b56e4
mov byte [eax + 0x1e], 0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebx + 0xd0]
mov ecx, dword [ebx + 0xd4]
mov dword [ebx + 0xe0], edx
mov dword [ebx + 0xe4], ecx
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx + 0xd0]
mov eax, dword [edx + 0xd4]
mov dword [edx + 0xd8], ebx
mov dword [edx + 0xdc], eax
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xe8], eax
mov dword [ecx + 0xec], eax
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx + 0xe8]
mov dword [edx + 0x110], ebx
mov ecx, dword [ebp - 0x14]
and byte [ecx + 0x1a5], 0xfd
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0xb0], eax
mov ebx, dword [ebp - 0x14]
jmp 0x5b5781
mov edx, dword [ebx + 0xe8]
mov eax, edx
mov ecx, dword [ebx + 0xec]
or eax, ecx
je 0x5b5781
add dword [ebx + 0xe0], edx
adc dword [ebx + 0xe4], ecx
xor eax, eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xe8], eax
mov dword [edx + 0xec], eax
mov ebx, dword [ebp - 0x14]
or byte [ebx + 0x1a5], 8
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5b579e
movzx eax, word [ebx + 0x18a]
test eax, eax
jg 0x5b5a54
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x5b67d1
cmp byte [eax + 0x1e], 0
jne 0x5b5a54
test ebx, ebx
je 0x5b57c9
movzx eax, word [ebx + 0x18a]
test eax, eax
jg 0x5b5a0a
push 0
push ebx
call fcn.005e6270
add esp, 8
test eax, eax
je 0x5b5846
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5b679d
test byte [eax + 0x44], 2
je 0x5b5813
mov edx, 0x26
mov dword [eax + 0x38], edx
mov eax, dword [ebx + 0x20]
mov dword [eax + 0x3c], edx
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5b5806
xor edx, edx
mov dword [eax + 4], edx
mov dword [ebx + 0x7c], edx
mov eax, 0x26
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx edx, byte [ebx + 0x1ae]
mov eax, 0x26
and edx, 0x10
movzx ecx, byte [ebx + 0x1a4]
push eax
shr edx, 1
and ecx, 7
push eax
or ecx, edx
push ecx
push 0xffffffffffffffff
push ebx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movsx eax, byte [ebx + 0x18c]
mov dword [ebp - 0x2c], eax
cmp eax, 8
ja 0x5b5973
movzx eax, byte [eax + 0x697744]
add eax, 0x5b5867
jmp eax
push 0x46d
push str.for_wseq_lis.c
push 2
push 8
call fcn.005b16e0
add esp, 0x10
movzx eax, byte [ebx + 0x1a0]
mov ecx, dword [ebx + 0x50]
test al, 4
je 0x5b59b2
test byte [ebx + 0x1a2], 0x40
je 0x5b59b2
test byte [ebx + 0x1a3], 8
je 0x5b59b2
cmp byte [ebx + 0x18c], 1
je 0x5b59fd
movsx eax, byte [ebx + 0x18e]
cmp eax, 2
jne 0x5b59d9
movsx eax, byte [ebx + 0x18c]
cmp eax, 7
je 0x5b59fd
cmp eax, 6
je 0x5b59fd
cmp eax, 8
je 0x5b59fd
dec dword [ebx + 0x58]
jmp 0x5b59fd
cmp eax, 1
jne 0x5b59fd
movsx eax, byte [ebx + 0x18c]
cmp eax, 7
je 0x5b59f7
cmp eax, 6
je 0x5b59f7
cmp eax, 8
je 0x5b59f7
dec dword [ebx + 0x58]
add ecx, 5
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x60], 0
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x60], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x54]
test edx, edx
je 0x5b5a31
push dword [eax + 0x118]
push 0x20
push edx
call fcn.0062a5e0
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x5b5a6f
movzx edx, word [eax + 0x18a]
test edx, edx
jg 0x5b5a73
push dword [eax + 0x118]
push 0x20
push dword [eax + 0x4c]
call fcn.0062a5e0
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x5b5a6f
mov dword [ebx + 0x60], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x94]
test edx, edx
je 0x5b5a73
mov byte [edx + 0x1e], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5b5a7e
movzx edx, word [eax + 0x18a]
test edx, edx
jg 0x5b5a85
or byte [edi + 0x2a], 0x10
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1a0], 2
je 0x5b5ae1
mov edx, dword [eax + 0x94]
test edx, edx
je 0x5b67ed
cmp byte [edx + 0x1f], 0
je 0x5b5ae1
test eax, eax
je 0x5b5ab1
movzx edx, word [eax + 0x18a]
test edx, edx
jg 0x5b5ae1
push dword [eax + 0x104]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x5b5ae1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x94]
test eax, eax
je 0x5b5ad6
mov byte [eax + 0x1f], 0
mov edx, dword [ebp - 0x14]
push 0
push edx
call fcn.005e6270
add esp, 8
push dword [ebp + 0x18]
push dword [ebp - 0x10]
push esi
call fcn.005b6b00
add esp, 0xc
mov edx, dword [edi + 0x14]
test edx, edx
je 0x5b5af9
mov eax, edx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
lea edx, [ebp - 0x30]
push edx
push edi
call fcn.005e1f60
add esp, 8
test eax, eax
jne 0x5b4df5
mov edi, dword [ebp - 0x30]
xor edx, edx
mov dword [edi + 0x9c], edx
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x114], edx
mov edx, dword [ebp - 0x30]
and byte [edx + 0x1ad], 0xf7
mov edi, dword [ebp - 0x30]
movzx edx, byte [ebp + 0x10]
and edx, 1
movzx ecx, byte [edi + 0x1a4]
and ecx, 0xfffffffe
or ecx, edx
mov byte [edi + 0x1a4], cl
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
movzx edx, byte [edi + 0x1ae]
and edx, 0xffffffef
or edx, ecx
mov byte [edi + 0x1ae], dl
mov ecx, dword [ebp - 0x30]
mov edx, dword [esi]
mov dword [ecx + 0x114], edx
mov edx, dword [ebp - 0x30]
mov esi, dword [esi + 4]
mov dword [edx + 0x9c], esi
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5b5beb
test byte [edx + 0x44], 2
je 0x5b5bbd
mov dword [edx + 0x38], ebx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], ebx
mov esi, dword [ebp - 0x30]
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x5b5bb3
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x7c], ecx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx eax, byte [ecx + 0x1ae]
and eax, 0x10
movzx edx, byte [ecx + 0x1a4]
push ebx
shr eax, 1
and edx, 7
push ebx
or edx, eax
push edx
push 0xffffffffffffffff
push ecx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ecx
push ebx
push ebx
push 0
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x53
jne 0x5b5104
push 3
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push 0x53
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x30], edx
call fcn.005c59f0
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5b5c6f
mov ecx, dword [ebp - 0x14]
add edx, 4
movzx eax, byte [ecx + 0x19b]
mov byte [ecx + 0x19c], al
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ab], 0x20
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov byte [ecx + 0x19b], al
jmp 0x5b5104
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5b5cd6
test byte [edx + 0x44], 2
je 0x5b5ca8
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x5b5ca0
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x7c], ecx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push eax
movzx eax, byte [ecx + 0x1ae]
and eax, 0x10
movzx edx, byte [ecx + 0x1a4]
shr eax, 1
and edx, 7
or edx, eax
push edx
push 0xffffffffffffffff
push ecx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x51
jne 0x5b50fb
push 3
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push 0x51
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x30], edx
call fcn.005c59f0
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5b5d49
mov ecx, dword [ebp - 0x14]
add edx, 4
add dword [ebp - 0x28], 8
movzx eax, byte [ecx + 0x197]
mov byte [ecx + 0x198], al
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ab], 0x10
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov byte [ecx + 0x197], al
jmp 0x5b50fb
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5b5db0
test byte [edx + 0x44], 2
je 0x5b5d82
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x5b5d7a
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x7c], ecx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push eax
movzx eax, byte [ecx + 0x1ae]
and eax, 0x10
movzx edx, byte [ecx + 0x1a4]
shr eax, 1
and edx, 7
or edx, eax
push edx
push 0xffffffffffffffff
push ecx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x3c
jne 0x5b50f2
test ebx, 0x80000
je 0x5b5de1
test ebx, 0x20000
jne 0x5b5de7
jmp 0x5b5dfc
test byte [ebp + 0x12], 4
jne 0x5b5dfc
push 0
push 0x2fc
mov dword [ebp - 0x30], edx
call fcn.005b16e0
mov edx, dword [ebp - 0x30]
add esp, 8
push 3
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push 0x3c
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x30], edx
call fcn.005c59f0
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5b5e97
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x14]
movzx ecx, byte [ebx + 0x1a6]
mov eax, ecx
shr ecx, 1
and eax, 0xfffffffb
and ecx, 1
shl ecx, 2
or eax, ecx
mov byte [ebx + 0x1a6], al
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
or byte [eax + 0x1ab], 8
mov eax, dword [ebp - 0x20]
cmp eax, 2
jne 0x5b5e7e
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x14]
movzx ecx, byte [ebp + 0x12]
shr ecx, 2
and ecx, 1
movzx eax, byte [ebx + 0x1a6]
add ecx, ecx
and eax, 0xfffffffd
or eax, ecx
mov byte [ebx + 0x1a6], al
mov ebx, dword [ebp - 0x2c]
jmp 0x5b5e8b
cmp eax, 1
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1a6], 0xfd
add dword [ebp - 0x28], 8
add edx, 4
jmp 0x5b50f2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5b5efe
test byte [edx + 0x44], 2
je 0x5b5ed0
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x5b5ec8
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x7c], ecx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push eax
movzx eax, byte [ecx + 0x1ae]
and eax, 0x10
movzx edx, byte [ecx + 0x1a4]
shr eax, 1
and edx, 7
or edx, eax
push edx
push 0xffffffffffffffff
push ecx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x3b
jne 0x5b50e9
push 3
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push 0x3b
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x30], edx
call fcn.005c59f0
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5b5f99
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ecx + 0x191]
mov byte [ecx + 0x192], al
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ab], 4
mov eax, dword [ebp - 0x20]
cmp eax, 2
je 0x5b5f83
cmp eax, 1
jne 0x5b5f72
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x191], 0x27
jmp 0x5b5f8d
cmp eax, 3
jne 0x5b5f83
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x191], 0x22
jmp 0x5b5f8d
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x191], 0
add dword [ebp - 0x28], 8
add edx, 4
jmp 0x5b50e9
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5b6000
test byte [edx + 0x44], 2
je 0x5b5fd2
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x5b5fca
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x7c], ecx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push eax
movzx eax, byte [ecx + 0x1ae]
and eax, 0x10
movzx edx, byte [ecx + 0x1a4]
shr eax, 1
and edx, 7
or edx, eax
push edx
push 0xffffffffffffffff
push ecx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x52
jne 0x5b50e0
push 3
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push 0x52
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x30], edx
call fcn.005c59f0
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5b6073
mov ecx, dword [ebp - 0x14]
add edx, 4
add dword [ebp - 0x28], 8
movzx eax, byte [ecx + 0x199]
mov byte [ecx + 0x19a], al
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ab], 2
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov byte [ecx + 0x199], al
jmp 0x5b50e0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5b60da
test byte [edx + 0x44], 2
je 0x5b60ac
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x5b60a4
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x7c], ecx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push eax
movzx eax, byte [ecx + 0x1ae]
and eax, 0x10
movzx edx, byte [ecx + 0x1a4]
shr eax, 1
and edx, 7
or edx, eax
push edx
push 0xffffffffffffffff
push ecx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 6
jne 0x5b50d7
push 3
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push 6
push dword [ecx]
push dword [ecx + 4]
mov dword [ebp - 0x30], edx
call fcn.005c59f0
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5b617a
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x14]
movzx ecx, byte [ebx + 0x1a3]
mov eax, ecx
shr ecx, 5
and eax, 0xffffffbf
and ecx, 1
shl ecx, 6
or eax, ecx
mov byte [ebx + 0x1a3], al
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
or byte [eax + 0x1ab], 1
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x5b6164
cmp eax, 2
jne 0x5b6164
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1a3], 0x20
jmp 0x5b616e
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1a3], 0xdf
add dword [ebp - 0x28], 8
add edx, 4
jmp 0x5b50d7
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5b61e1
test byte [edx + 0x44], 2
je 0x5b61b3
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x5b61ab
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x7c], ecx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push eax
movzx eax, byte [ecx + 0x1ae]
and eax, 0x10
movzx edx, byte [ecx + 0x1a4]
shr eax, 1
and edx, 7
or edx, eax
push edx
push 0xffffffffffffffff
push ecx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ecx
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x4f
jne 0x5b50ce
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1a3], 4
jne 0x5b6307
test byte [eax + 0x1a1], 0x20
jne 0x5b6290
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5b63d4
test byte [edx + 0x44], 2
je 0x5b625d
mov eax, 0x6d
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5b6250
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, 0x6d
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx ecx, byte [eax + 0x1ae]
mov edx, 0x6d
and ecx, 0x10
movzx ebx, byte [eax + 0x1a4]
push edx
shr ecx, 1
and ebx, 7
push edx
or ebx, ecx
push ebx
push 0xffffffffffffffff
push eax
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5b63ee
test byte [edx + 0x44], 2
je 0x5b62d7
mov dword [edx + 0x38], 0x6e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x5b62ca
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, 0x6e
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx edx, byte [eax + 0x1ae]
and edx, 0x10
movzx ecx, byte [eax + 0x1a4]
push 0x1f
shr edx, 1
and ecx, 7
push 0x6e
or ecx, edx
push ecx
push 0xffffffffffffffff
push eax
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test eax, eax
je 0x5b6316
movzx ecx, word [eax + 0x18a]
test ecx, ecx
jg 0x5b635d
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov ecx, dword [edx]
add ecx, 0xffffffff
mov ebx, dword [edx + 4]
adc ebx, 0xffffffff
add edx, 8
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
xor edx, edx
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xd4]
sub ecx, edx
mov edx, dword [ebp - 0x30]
jl 0x5b6405
add edx, 4
jmp 0x5b50ce
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5b6492
test byte [edx + 0x44], 2
je 0x5b63a1
mov eax, 0x10f
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5b6394
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, 0x10f
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx ecx, byte [eax + 0x1ae]
mov edx, 0x10f
and ecx, 0x10
movzx ebx, byte [eax + 0x1a4]
push edx
shr ecx, 1
and ebx, 7
push edx
or ebx, ecx
push ebx
push 0xffffffffffffffff
push eax
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
mov eax, 0x6d
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push 0x1f
push 0x6e
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5b6478
test byte [edx + 0x44], 2
je 0x5b6445
mov eax, 0x6f
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5b6438
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, 0x6f
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx ecx, byte [eax + 0x1ae]
mov edx, 0x6f
and ecx, 0x10
movzx ebx, byte [eax + 0x1a4]
push edx
shr ecx, 1
and ebx, 7
push edx
or ebx, ecx
push ebx
push 0xffffffffffffffff
push eax
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
mov eax, 0x6f
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
mov eax, 0x10f
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x4e
jne 0x5b50c5
add edx, 4
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebx + 0x114], ecx
mov ebx, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
add eax, 8
mov dword [ebp - 0x28], eax
mov dword [ebx + 0x9c], ecx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
and byte [ecx + 0x1ad], 0xf7
jmp 0x5b50c5
push ecx
push eax
push eax
push 2
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push 0x1f
push 0x101
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
push 0x1f
push 0x103
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x108], eax
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5b65b9
test byte [eax + 0x44], 2
je 0x5b6586
mov edx, 0x26
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5b6579
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, 0x26
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx edx, byte [ebx + 0x1ae]
mov eax, 0x26
and edx, 0x10
movzx ecx, byte [ebx + 0x1a4]
push eax
shr edx, 1
and ecx, 7
push eax
or ecx, edx
push ecx
push 0xffffffffffffffff
push ebx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
mov eax, 0x26
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b65ed
mov eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
jmp 0x5b6534
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x5b56bf
mov edx, dword [ebx + 0x168]
test edx, edx
mov eax, dword [ebx + 0x4c]
jne 0x5b660a
mov edx, 0x20000
mov ecx, dword [ebx + 0x54]
sub ecx, eax
mov dword [ebp - 0x28], ecx
cmp ecx, edx
ja 0x5b663f
push 0
lea edx, [ebp - 0x24]
push edx
push dword [ebp - 0x28]
push eax
push dword [ebx + 0x104]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, 0xffffffff
je 0x5b663a
mov eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x5b66a7
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edi
mov edi, eax
mov dword [ebp - 0x1c], esi
mov esi, ecx
push 0
lea edx, [ebp - 0x24]
push edx
push dword [ebp - 0x2c]
push edi
push dword [ebx + 0x104]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5b6675
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 0xffffffff
jmp 0x5b66a7
mov edx, dword [ebx + 0x168]
test edx, edx
mov eax, dword [ebp - 0x24]
jne 0x5b6687
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x5b6692
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x5b669a
test eax, eax
ja 0x5b664c
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebx + 0xc8], edx
mov dword [ebx + 0xcc], edx
cdq
add eax, dword [ebx + 0xe0]
mov ecx, dword [ebx + 0x4c]
mov dword [ebx + 0x54], ecx
adc edx, dword [ebx + 0xe4]
add ecx, dword [ebx + 0x118]
and byte [ebx + 0x1a5], 0xfb
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0xe0], eax
mov dword [ebx + 0xe4], edx
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0xdc], edx
cmp dword [ebp - 0x2c], 0xffffffff
je 0x5b6701
mov ebx, dword [ebp - 0x14]
jmp 0x5b568a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5b6783
test byte [eax + 0x44], 2
je 0x5b6750
mov edx, 0x26
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5b6743
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, 0x26
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx edx, byte [ebx + 0x1ae]
mov eax, 0x26
and edx, 0x10
movzx ecx, byte [ebx + 0x1a4]
push eax
shr edx, 1
and ecx, 7
push eax
or ecx, edx
push ecx
push 0xffffffffffffffff
push ebx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
mov eax, 0x26
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
mov eax, 0x26
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test ebx, ebx
je 0x5b57b6
movzx eax, word [ebx + 0x18a]
test eax, eax
jle 0x5b57b6
jmp 0x5b5a54
test eax, eax
je 0x5b5ae1
movzx edx, word [eax + 0x18a]
test edx, edx
jle 0x5b5ae1
jmp 0x5b5aa2
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5b687c
test byte [edx + 0x44], 2
je 0x5b6849
mov eax, 0x1f
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5b683c
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, 0x1f
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx ecx, byte [eax + 0x1ae]
mov edx, 0x1f
and ecx, 0x10
movzx ebx, byte [eax + 0x1a4]
push edx
shr ecx, 1
and ebx, 7
push edx
or ebx, ecx
push ebx
push 0xffffffffffffffff
push eax
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
mov eax, 0x1f
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5b6909
test byte [edx + 0x44], 2
je 0x5b68d6
mov eax, 0x2f
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5b68c9
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, 0x2f
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx ecx, byte [eax + 0x1ae]
mov edx, 0x2f
and ecx, 0x10
movzx ebx, byte [eax + 0x1a4]
push edx
shr ecx, 1
and ebx, 7
push edx
or ebx, ecx
push ebx
push 0xffffffffffffffff
push eax
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push eax
mov eax, 0x2f
push eax
push eax
push 1
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebx + 0x4c]
movsx edx, byte [ecx + 5]
cmp edx, 0x20
je 0x5b694d
cmp edx, 0x2b
jne 0x5b693f
mov byte [ecx + 5], 0
movzx eax, byte [ebx + 0x1a5]
and eax, 0xffffffbf
mov byte [ebx + 0x1a5], al
jmp 0x5b4e6b
mov byte [ecx + 5], 0x24
movzx eax, byte [ebx + 0x1a5]
jmp 0x5b693f
push 5
push esi
lea eax, [ebp - 0x14]
push eax
push 0xfffffffffffffffa
call fcn.005e0a20
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x5b4e11
movzx ecx, byte [ebp + 0x13]
lea edx, [ebp + 0x1c]
and ecx, 0x80
mov dword [ebp - 0x28], edx
shr ecx, 7
mov dword [ebp - 0x30], ecx
je 0x5b699e
lea edx, [ebp + 0x1f]
and edx, 0xfffffffc
add edx, 4
mov dword [ebp - 0x28], edx
mov eax, dword [edx - 4]
jmp 0x5b69a0
xor eax, eax
mov edx, eax
shr edx, 0xf
movzx ecx, byte [ebp + 0x10]
and edx, 1
and ecx, 1
mov dword [ebp - 0x2c], edx
or ecx, edx
je 0x5b69e9
cmp dword [ebp - 0x30], 0
je 0x5b69de
test al, 0x10
je 0x5b69de
mov edx, dword [ebp - 0x28]
add edx, 3
and edx, 0xfffffffc
mov ecx, dword [edx]
add edx, 7
and edx, 0xfffffffc
cmp byte [ecx], 0x38
mov esi, dword [edx]
jne 0x5b69de
cmp byte [ecx + 2], 0x4e
je 0x5b69fd
movzx eax, bx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push str.unknown
push 0xfffffffffffffffb
push 2
push ebx
call fcn.005b16e0
jmp 0x5b4e0e
lea edx, [ebp - 0x30]
push edx
push 0xfffffffffffffffb
call fcn.005e1f60
add esp, 8
test eax, eax
jne 0x5b69de
mov edi, dword [ebp - 0x30]
xor edx, edx
mov dword [edi + 0x9c], edx
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x114], edx
mov edx, dword [ebp - 0x30]
and byte [edx + 0x1ad], 0xf7
mov edi, dword [ebp - 0x30]
movzx edx, byte [ebp + 0x10]
and edx, 1
movzx ecx, byte [edi + 0x1a4]
and ecx, 0xfffffffe
or ecx, edx
mov byte [edi + 0x1a4], cl
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
movzx edx, byte [edi + 0x1ae]
and edx, 0xffffffef
or edx, ecx
mov byte [edi + 0x1ae], dl
mov ecx, dword [ebp - 0x30]
mov edx, dword [esi]
mov dword [ecx + 0x114], edx
mov edx, dword [ebp - 0x30]
mov esi, dword [esi + 4]
mov dword [edx + 0x9c], esi
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5b6ae4
test byte [edx + 0x44], 2
je 0x5b6ab6
mov dword [edx + 0x38], ebx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x20]
mov dword [ecx + 0x3c], ebx
mov esi, dword [ebp - 0x30]
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x5b6aac
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x7c], ecx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx eax, byte [ecx + 0x1ae]
and eax, 0x10
movzx edx, byte [ecx + 0x1a4]
push ebx
shr eax, 1
and edx, 7
push ebx
or edx, eax
push edx
push 0xffffffffffffffff
push ecx
call fcn.005e8d00
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ecx
push ebx
push ebx
push 0
call fcn.005b0150
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret