Function at 0x5d1be0
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 0x5d386a
push 5
push esi
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00611150
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x5d1ca1
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 0x5d1c41
lea edx, [ebp + 0x1f]
and edx, 0xfffffffc
add edx, 4
mov dword [ebp - 0x28], edx
mov eax, dword [edx - 4]
jmp 0x5d1c43
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 0x5d1c90
cmp dword [ebp - 0x30], 0
je 0x5d1c85
test al, 0x10
je 0x5d1c85
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 0x5d1c85
cmp byte [ecx + 2], 0x4e
je 0x5d2a10
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.0060b140
add esp, 0x10
mov ecx, dword [ebp - 0x14]
test byte [ecx + 0x1a2], 0x40
je 0x5d1d90
mov edx, dword [ecx + 0x94]
test edx, edx
je 0x5d1d90
cmp byte [edx + 0x1e], 0
je 0x5d1d90
movzx eax, word [ecx + 0x18a]
test eax, eax
jg 0x5d1d90
mov ebx, dword [edx + 0xc]
cmp ebx, ecx
je 0x5d1d90
movzx eax, byte [ebx + 0x1a5]
test al, 0x40
je 0x5d1cfb
cmp byte [ebx + 0x18e], 1
je 0x5d3833
push ebx
call fcn.00621940
add esp, 4
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x94]
test edx, edx
je 0x5d1d15
mov byte [edx + 0x1e], 0
test eax, eax
je 0x5d1d78
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x5d2afb
test byte [edx + 0x44], 2
je 0x5d1d4a
mov dword [edx + 0x38], eax
mov edx, dword [ebx + 0x20]
mov dword [edx + 0x3c], eax
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x5d1d42
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.0061aa20
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 0x5d1fb4
lea ecx, [ebp + 0x1f]
and ecx, 0xfffffffc
lea edx, [ecx + 4]
mov ebx, dword [edx - 4]
test eax, eax
je 0x5d1fb6
test bl, 0x20
je 0x5d1e73
or byte [eax + 0x1ab], 0x40
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ad], 0xbf
test ebx, 0x2000
je 0x5d1e8c
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ad], 0x40
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ad], 0x7f
test ebx, 0x4000
je 0x5d1ea8
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ad], 0x80
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ae], 0xef
test ebx, 0x8000
je 0x5d1ec4
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ae], 0x10
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ae], 0xdf
test ebx, 0x10000
je 0x5d1ee0
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ae], 0x20
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ae], 0xbf
test ebx, 0x20000
je 0x5d1efc
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ae], 0x40
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1ae], 0x7f
test ebx, 0x40000
je 0x5d1f18
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1ae], 0x80
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1af], 0xfe
test ebx, 0x80000
je 0x5d1f34
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1af], 1
test bl, 0x10
je 0x5d1faf
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 0x5d33a7
cmp byte [edx], 0xb
je 0x5d30f1
cmp byte [edx], 0x38
je 0x5d2fea
cmp byte [edx], 0x38
je 0x5d2f10
cmp byte [edx], 0x38
je 0x5d2e0e
cmp byte [edx], 0x38
je 0x5d2cc0
cmp byte [edx], 0x38
je 0x5d2be6
cmp byte [edx], 0x38
je 0x5d2b10
cmp byte [edx], 1
je 0x5d1faf
push 0x3cf
push str.for_wseq_lis.c
push 2
push 8
call fcn.0060b140
add esp, 0x10
mov eax, dword [ebp - 0x14]
jmp 0x5d1fb6
xor ebx, ebx
mov dword [eax + 0x150], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5d1fd2
movzx edx, word [eax + 0x18a]
test edx, edx
jg 0x5d1fdf
mov dword [eax + 0x154], 0
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1a1], 0x20
jne 0x5d232a
cmp dword [eax + 0x124], 0xfffffffb
je 0x5d232a
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 0x5d22a6
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.005eb2f0
add esp, 0x10
test eax, eax
je 0x5d2327
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5d33e6
test byte [edx + 0x44], 2
je 0x5d22f9
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 0x5d22f1
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.0061aa20
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 0x5d2351
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 0x5d37a6
movzx ecx, byte [eax + 0x1a3]
test cl, 0x10
jne 0x5d3719
test byte [eax + 0x1a2], 0x40
jne 0x5d240d
cmp edi, 0xfffffffb
je 0x5d240d
test eax, eax
je 0x5d2393
movzx edx, word [eax + 0x18a]
test edx, edx
jg 0x5d240d
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5d33fb
test byte [edx + 0x44], 2
je 0x5d23da
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 0x5d23cd
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.0061aa20
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test cl, 8
je 0x5d2499
test byte [eax + 0x1a0], 4
jne 0x5d2499
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5d3415
test byte [edx + 0x44], 2
je 0x5d2466
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 0x5d2459
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.0061aa20
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 0x5d24aa
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 0x5d261b
mov edx, dword [ebx + 0xd0]
mov eax, dword [ebx + 0xd4]
sub edx, dword [ebx + 0xd8]
sub eax, dword [ebx + 0xdc]
or edx, eax
je 0x5d25df
test byte [ebx + 0x1a5], 4
jne 0x5d34f3
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 0x5d34ce
mov edx, dword [ebp - 0x18]
mov eax, 0xffffffff
sub ecx, eax
sub edx, eax
or ecx, edx
je 0x5d342f
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x5d2574
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 0x5d2611
mov edx, dword [ebx + 0xe8]
mov eax, edx
mov ecx, dword [ebx + 0xec]
or eax, ecx
je 0x5d2611
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 0x5d262e
movzx eax, word [ebx + 0x18a]
test eax, eax
jg 0x5d28e4
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x5d36cc
cmp byte [eax + 0x1e], 0
jne 0x5d28e4
test ebx, ebx
je 0x5d2659
movzx eax, word [ebx + 0x18a]
test eax, eax
jg 0x5d289a
push 0
push ebx
call fcn.006230f0
add esp, 8
test eax, eax
je 0x5d26d6
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5d3698
test byte [eax + 0x44], 2
je 0x5d26a3
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 0x5d2696
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.0061aa20
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 0x5d2803
movzx eax, byte [eax + 0x741854]
add eax, 0x5d26f7
jmp eax
push 0x471
push str.for_wseq_lis.c
push 2
push 8
call fcn.0060b140
add esp, 0x10
movzx eax, byte [ebx + 0x1a0]
mov edx, dword [ebx + 0x50]
test al, 4
je 0x5d2842
test byte [ebx + 0x1a2], 0x40
je 0x5d2842
test byte [ebx + 0x1a3], 8
je 0x5d2842
cmp byte [ebx + 0x18c], 1
je 0x5d288d
movsx eax, byte [ebx + 0x18e]
cmp eax, 2
jne 0x5d2869
movsx eax, byte [ebx + 0x18c]
cmp eax, 7
je 0x5d288d
cmp eax, 6
je 0x5d288d
cmp eax, 8
je 0x5d288d
dec dword [ebx + 0x58]
jmp 0x5d288d
cmp eax, 1
jne 0x5d288d
movsx eax, byte [ebx + 0x18c]
cmp eax, 7
je 0x5d2887
cmp eax, 6
je 0x5d2887
cmp eax, 8
je 0x5d2887
dec dword [ebx + 0x58]
add edx, 5
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x5c], edx
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 0x5d28c1
push dword [eax + 0x118]
push 0x20
push edx
call fcn.0065d380
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x5d28ff
movzx edx, word [eax + 0x18a]
test edx, edx
jg 0x5d2903
push dword [eax + 0x118]
push 0x20
push dword [eax + 0x4c]
call fcn.0065d380
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x5d28ff
mov dword [ebx + 0x60], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x94]
test edx, edx
je 0x5d2903
mov byte [edx + 0x1e], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5d290e
movzx edx, word [eax + 0x18a]
test edx, edx
jg 0x5d2915
or byte [edi + 0x2a], 0x10
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1a0], 2
je 0x5d29f0
mov edx, dword [eax + 0x94]
test edx, edx
je 0x5d36fd
cmp byte [edx + 0x1f], 0
je 0x5d29f0
test eax, eax
je 0x5d294d
movzx edx, word [eax + 0x18a]
test edx, edx
jg 0x5d29f0
push dword [eax + 0x104]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x5d29f0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x94]
test eax, eax
je 0x5d2976
mov byte [eax + 0x1f], 0
mov edx, dword [ebp - 0x14]
push 0
push edx
call fcn.006230f0
add esp, 8
test eax, eax
je 0x5d29f0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5d36e8
test byte [edx + 0x44], 2
je 0x5d29c2
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 0x5d29ba
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.0061aa20
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push dword [ebp + 0x18]
push dword [ebp - 0x10]
push esi
call fcn.005d3a00
add esp, 0xc
mov edx, dword [edi + 0x14]
test edx, edx
je 0x5d2a08
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.00612690
add esp, 8
test eax, eax
jne 0x5d1c85
mov edi, dword [ebp - 0x30]
movzx edx, byte [ebp + 0x10]
and edx, 1
and byte [edi + 0x1ad], 0xf7
mov edi, dword [ebp - 0x30]
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 0x5d2ae6
test byte [edx + 0x44], 2
je 0x5d2ab8
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 0x5d2aae
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.0061aa20
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.00609b70
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.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x53
jne 0x5d1f94
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.005e9520
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5d2b6a
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 0x5d1f94
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5d2bd1
test byte [edx + 0x44], 2
je 0x5d2ba3
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 0x5d2b9b
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.0061aa20
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.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x51
jne 0x5d1f8b
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.005e9520
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5d2c44
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 0x5d1f8b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5d2cab
test byte [edx + 0x44], 2
je 0x5d2c7d
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 0x5d2c75
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.0061aa20
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.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x3c
jne 0x5d1f82
test ebx, 0x80000
je 0x5d2cdc
test ebx, 0x20000
jne 0x5d2ce2
jmp 0x5d2cf7
test byte [ebp + 0x12], 4
jne 0x5d2cf7
push 0
push 0x2fc
mov dword [ebp - 0x30], edx
call fcn.0060b140
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.005e9520
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5d2d92
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 0x5d2d79
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 0x5d2d86
cmp eax, 1
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1a6], 0xfd
add dword [ebp - 0x28], 8
add edx, 4
jmp 0x5d1f82
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5d2df9
test byte [edx + 0x44], 2
je 0x5d2dcb
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 0x5d2dc3
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.0061aa20
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.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x3b
jne 0x5d1f79
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.005e9520
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5d2e94
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 0x5d2e7e
cmp eax, 1
jne 0x5d2e6d
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x191], 0x27
jmp 0x5d2e88
cmp eax, 3
jne 0x5d2e7e
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x191], 0x22
jmp 0x5d2e88
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x191], 0
add dword [ebp - 0x28], 8
add edx, 4
jmp 0x5d1f79
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5d2efb
test byte [edx + 0x44], 2
je 0x5d2ecd
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 0x5d2ec5
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.0061aa20
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.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x52
jne 0x5d1f70
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.005e9520
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5d2f6e
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 0x5d1f70
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5d2fd5
test byte [edx + 0x44], 2
je 0x5d2fa7
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 0x5d2f9f
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.0061aa20
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.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 6
jne 0x5d1f67
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.005e9520
mov edx, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x5d3075
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 0x5d305f
cmp eax, 2
jne 0x5d305f
mov eax, dword [ebp - 0x14]
or byte [eax + 0x1a3], 0x20
jmp 0x5d3069
mov eax, dword [ebp - 0x14]
and byte [eax + 0x1a3], 0xdf
add dword [ebp - 0x28], 8
add edx, 4
jmp 0x5d1f67
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x5d30dc
test byte [edx + 0x44], 2
je 0x5d30ae
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 0x5d30a6
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.0061aa20
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.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x4f
jne 0x5d1f5e
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1a3], 4
jne 0x5d3202
test byte [eax + 0x1a1], 0x20
jne 0x5d318b
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5d32cf
test byte [edx + 0x44], 2
je 0x5d3158
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 0x5d314b
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.0061aa20
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 0x5d32e9
test byte [edx + 0x44], 2
je 0x5d31d2
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 0x5d31c5
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.0061aa20
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test eax, eax
je 0x5d3211
movzx ecx, word [eax + 0x18a]
test ecx, ecx
jg 0x5d3258
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 0x5d3300
add edx, 4
jmp 0x5d1f5e
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5d338d
test byte [edx + 0x44], 2
je 0x5d329c
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 0x5d328f
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.0061aa20
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.00609b70
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.00609b70
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 0x5d3373
test byte [edx + 0x44], 2
je 0x5d3340
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 0x5d3333
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.0061aa20
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.00609b70
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.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 2], 0x4e
jne 0x5d1f55
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 0x5d1f55
push ecx
push eax
push eax
push 2
call fcn.00609b70
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.00609b70
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.00609b70
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 0x5d34b4
test byte [eax + 0x44], 2
je 0x5d3481
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 0x5d3474
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.0061aa20
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.00609b70
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 0x5d34e8
mov eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
jmp 0x5d342f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x5d254f
mov edx, dword [ebx + 0x168]
test edx, edx
mov eax, dword [ebx + 0x4c]
jne 0x5d3505
mov edx, 0x20000
mov ecx, dword [ebx + 0x54]
sub ecx, eax
mov dword [ebp - 0x28], ecx
cmp ecx, edx
ja 0x5d353a
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 0x5d3535
mov eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x5d35a2
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 0x5d3570
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 0xffffffff
jmp 0x5d35a2
mov edx, dword [ebx + 0x168]
test edx, edx
mov eax, dword [ebp - 0x24]
jne 0x5d3582
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x5d358d
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x5d3595
test eax, eax
ja 0x5d3547
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 0x5d35fc
mov ebx, dword [ebp - 0x14]
jmp 0x5d251a
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 0x5d367e
test byte [eax + 0x44], 2
je 0x5d364b
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 0x5d363e
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.0061aa20
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.00609b70
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.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test ebx, ebx
je 0x5d2646
movzx eax, word [ebx + 0x18a]
test eax, eax
jle 0x5d2646
jmp 0x5d28e4
push ecx
push eax
push eax
push 1
call fcn.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test eax, eax
je 0x5d29f0
movzx edx, word [eax + 0x18a]
test edx, edx
jle 0x5d29f0
jmp 0x5d293a
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5d378c
test byte [edx + 0x44], 2
je 0x5d3759
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 0x5d374c
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.0061aa20
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.00609b70
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 0x5d3819
test byte [edx + 0x44], 2
je 0x5d37e6
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 0x5d37d9
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.0061aa20
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.00609b70
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 0x5d385d
cmp edx, 0x2b
jne 0x5d384f
mov byte [ecx + 5], 0
movzx eax, byte [ebx + 0x1a5]
and eax, 0xffffffbf
mov byte [ebx + 0x1a5], al
jmp 0x5d1cfb
mov byte [ecx + 5], 0x24
movzx eax, byte [ebx + 0x1a5]
jmp 0x5d384f
push 5
push esi
lea eax, [ebp - 0x14]
push eax
push 0xfffffffffffffffa
call fcn.00611150
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x5d1ca1
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 0x5d38ae
lea edx, [ebp + 0x1f]
and edx, 0xfffffffc
add edx, 4
mov dword [ebp - 0x28], edx
mov eax, dword [edx - 4]
jmp 0x5d38b0
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 0x5d38f9
cmp dword [ebp - 0x30], 0
je 0x5d38ee
test al, 0x10
je 0x5d38ee
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 0x5d38ee
cmp byte [ecx + 2], 0x4e
je 0x5d390d
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.0060b140
jmp 0x5d1c9e
lea edx, [ebp - 0x30]
push edx
push 0xfffffffffffffffb
call fcn.00612690
add esp, 8
test eax, eax
jne 0x5d38ee
mov edi, dword [ebp - 0x30]
movzx edx, byte [ebp + 0x10]
and edx, 1
and byte [edi + 0x1ad], 0xf7
mov edi, dword [ebp - 0x30]
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 0x5d39e0
test byte [edx + 0x44], 2
je 0x5d39b2
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 0x5d39a8
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.0061aa20
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.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret