Function at 0x5b5af6
Capabilities:
Check for software breakpoints
Inspect section memory permissions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 1
push esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x11c]
xor esi, esi
test eax, 0x8000000
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
je 0x5b51e1
cmp dword [eax + 0x7c], esi
jne 0x5b51e1
cmp dword [eax + 0x2c], esi
jne 0x5b51e1
cmp dword [eax + 0x54], esi
jne 0x5b51e1
mov dword [eax + 0x54], 3
mov ecx, dword [eax + 0x54]
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x48], ecx
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x44], edx
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x148]
push ecx
lea eax, [ebp - 0x48]
push edx
push eax
push ebx
call fcn.005b7390
add esp, 0x10
cmp eax, esi
jne 0x5b7134
lea edi, [ebp - 0x148]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebx + 0x50]
mov word [ebx + 0x10a], cx
push eax
movsx ecx, cx
inc ecx
push esi
push ecx
call fcn.005a3d00
add esp, 0xc
cmp eax, esi
jne 0x5b7134
lea edi, [ebp - 0x148]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebx + 0x90], edx
jne 0x5b5288
mov dword [ebx + 0x90], 1
mov ecx, dword [ebp + 8]
mov edi, 2
cmp dword [ecx + 0x44], edx
je 0x5b52ca
mov eax, dword [ebp - 4]
mov esi, dword [ebx + 0x118]
or al, 0x80
or esi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x118], esi
mov esi, dword [ebx + 0x11c]
or eax, 0x80000000
or esi, 0x400000
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x11c], esi
jmp 0x5b52dd
mov eax, dword [ebp - 4]
or al, 0x80
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
or eax, 0xc0000000
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx + 0x68]
cmp ecx, 3
ja case.default.0x5b52ee
mov esi, 0x40
jmp dword [ecx*4 + 0x5b7174]
test byte [ebx + 0x118], 2
je 0x5b530a
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xc0000000
or cl, 0x80
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebx + 0x11c]
test ecx, 0x8000000
je case.0x5b52ee.0
jmp 0x5b5387
mov ecx, dword [ebx + 0x118]
and eax, 0x3fffffff
or ecx, edi
mov dword [ebx + 0x118], ecx
mov ecx, dword [ebp - 4]
or cl, 0x80
or eax, 0x80000000
mov dword [ebp - 4], ecx
jmp 0x5b5384
test byte [ebx + 0x118], 2
je 0x5b5363
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x11c]
and eax, 0x3fffffff
or ecx, esi
mov dword [ebx + 0x11c], ecx
mov ecx, dword [ebp - 4]
or cl, 0x80
or eax, 0x40000000
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x88]
cmp ecx, 3
ja case.default.0x5b539c
jmp dword [ecx*4 + 0x5b7184]
test byte [ebx + 0x118], 2
je 0x5b53b8
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
or eax, 0xc0000000
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x11c]
or esi, 0x80
test eax, 0x8000000
mov dword [ebp - 4], esi
je case.0x5b539c.0
jmp 0x5b543d
mov ecx, dword [ebx + 0x118]
and eax, 0x3fffffff
or ecx, edi
mov edi, dword [ebp - 4]
or edi, 0x80
mov dword [ebx + 0x118], ecx
mov dword [ebp - 4], edi
or eax, 0x80000000
jmp 0x5b543a
test byte [ebx + 0x118], 2
je 0x5b5416
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x11c]
mov edi, dword [ebp - 4]
or ecx, esi
or edi, 0x80
and eax, 0x3fffffff
mov dword [ebx + 0x11c], ecx
mov dword [ebp - 4], edi
or eax, 0x40000000
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 4
ja case.default.0x5b544e
jmp dword [eax*4 + 0x5b7194]
mov eax, dword [ebx + 0x118]
or ah, 8
jmp 0x5b548f
mov eax, dword [ebx + 0x118]
or ah, 0x10
jmp 0x5b548f
mov eax, dword [ebx + 0x118]
or ah, 0x20
jmp 0x5b548f
mov eax, dword [ebx + 0x118]
test al, 2
je 0x5b548c
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or ah, 0xc
mov dword [ebx + 0x118], eax
mov eax, dword [ecx + 0x54]
cmp eax, 5
ja case.default.0x5b54a1
jmp dword [eax*4 + 0x5b71a8]
test dword [ebx + 0x11c], 0x8000000
je case.0x5b54a1.4
lea edx, [ebp - 0x148]
push 0x636d34
push edx
call fcn.005c4ce0
add esp, 8
test eax, eax
jne case.0x5b54a1.4
mov eax, dword [ebx + 0x118]
or al, 0x20
mov dword [ebx + 0x118], eax
mov eax, dword [ebx + 0x118]
test al, 2
je 0x5b54f0
test dword [ebx + 0x11c], 0x8000000
je 0x5b5500
test dword [ebx + 0x11c], 0x400000
je 0x5b55ba
or al, 8
mov dword [ebx + 0x118], eax
mov eax, dword [ebp - 8]
or al, 3
jmp 0x5b55bf
mov ecx, dword [ebx + 0x118]
mov eax, dword [ebp - 8]
or ecx, 8
or al, 3
mov dword [ebx + 0x118], ecx
jmp 0x5b55bf
mov eax, dword [ebx + 0x118]
test al, 2
jne 0x5b70af
test ah, 4
je 0x5b554e
test dword [ebx + 0x11c], 0x8000000
je 0x5b70af
mov eax, dword [ebp - 8]
or al, 1
jmp 0x5b55bf
mov eax, dword [ebx + 0x118]
test al, 2
jne 0x5b70af
test ah, 4
je 0x5b5578
test dword [ebx + 0x11c], 0x8000000
je 0x5b70af
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 4]
or esi, 2
or edx, 0x4000002
or al, 0x10
mov dword [ebp - 8], esi
mov dword [ebp - 4], edx
mov dword [ebx + 0x118], eax
jmp 0x5b55c2
mov eax, dword [ebx + 0x118]
test al, 2
jne 0x5b70af
test ah, 4
je 0x5b55ba
test dword [ebx + 0x11c], 0x8000000
je 0x5b70af
mov eax, dword [ebp - 8]
or al, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
cmp eax, 6
ja case.default.0x5b578a
jmp dword [eax*4 + 0x5b71c0]
test byte [ebx + 0x118], 0x10
je case.0x5b55d1.0
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x118], 0x10
je case.0x5b55d1.2
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x118]
test al, 2
je 0x5b5618
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or al, 0x20
mov dword [ebx + 0x118], eax
mov ecx, dword [edx + 0x28]
cmp ecx, 5
jne 0x5b562c
or al, 0x40
jmp 0x5b5633
cmp ecx, 6
jne case.0x5b55d1.0
or al, 0x80
mov dword [ebx + 0x118], eax
mov eax, dword [edx + 0x34]
cmp eax, 4
ja case.default.0x5b564f
mov esi, 0x200
mov ecx, 0x20000000
jmp dword [eax*4 + 0x5b71dc]
mov eax, dword [ebx + 0x118]
test ah, 0x30
jne 0x5b566c
or ah, 1
mov dword [ebx + 0x118], eax
jmp 0x5b56c1
test dword [ebx + 0x120], 0x2000
jne 0x5b56a6
or eax, esi
mov dword [ebx + 0x118], eax
jmp 0x5b56c1
mov eax, dword [ebx + 0x118]
or ah, 1
mov dword [ebx + 0x118], eax
jmp 0x5b56c1
mov eax, dword [ebx + 0x120]
test ah, 0x20
jne 0x5b56a6
or dword [ebx + 0x118], esi
jmp 0x5b56c1
mov eax, dword [ebx + 0x11c]
or eax, ecx
jmp 0x5b56bb
mov eax, dword [ebx + 0x11c]
or eax, 0x40000000
mov dword [ebx + 0x11c], eax
mov al, byte [edx + 0x4c]
mov byte [ebx + 0x10c], al
mov eax, dword [edx + 0x4c]
cmp eax, 7
ja case.default.0x5b578a
jmp dword [eax*4 + 0x5b71f0]
mov eax, dword [ebx + 0x118]
test ah, 0x31
je case.0x5b56d6.0
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x10c], 4
mov cl, byte [edx + 0x18]
mov byte [ebx + 0x10e], cl
mov eax, dword [edx + 0x18]
test eax, eax
je 0x5b5732
jle 0x5b5712
cmp eax, 3
jle 0x5b577e
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x2c2
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x11c]
test ecx, 0x8000000
je 0x5b5759
mov eax, dword [ebx + 0x118]
test ah, 0x10
je 0x5b5759
test ah, 1
je 0x5b5759
mov byte [ebx + 0x10e], 2
jmp 0x5b577e
mov al, byte [ebx + 0x10c]
cmp al, 1
je 0x5b5777
cmp al, 4
je 0x5b5777
test dword [ebx + 0x118], esi
jne 0x5b5777
test ecx, 0x60000000
je 0x5b577e
mov byte [ebx + 0x10e], 3
mov eax, dword [edx + 0x40]
cmp eax, 3
ja case.default.0x5b578a
jmp dword [eax*4 + 0x5b7210]
mov ecx, dword [ebx + 0x118]
test ch, 0x20
jne 0x5b5813
mov byte [ebx + 0x10d], 1
jmp 0x5b581a
mov ecx, dword [ebx + 0x118]
test ch, 0x10
je 0x5b57ca
mov al, byte [ebx + 0x10c]
cmp al, 1
je 0x5b57ca
test al, al
je 0x5b57ca
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ch, 0x20
je 0x5b57db
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x10d], 1
jmp 0x5b581a
mov ecx, dword [ebx + 0x118]
test ch, 0x20
je 0x5b57fb
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x10d], 2
jmp 0x5b581a
mov ecx, dword [ebx + 0x118]
test ch, 0x14
jne 0x5b70af
mov byte [ebx + 0x10d], 3
mov al, byte [ebx + 0x10d]
cmp al, 2
je 0x5b5829
test ch, 0x10
je 0x5b5830
or dword [ebp - 4], 0x10000000
mov edi, dword [edx + 0x4c]
test edi, edi
jne 0x5b5882
cmp al, 2
je 0x5b587b
cmp al, 3
je 0x5b587b
test ch, 0x30
jne 0x5b587b
test dword [ebx + 0x11c], 0x60000000
jne 0x5b5872
test esi, ecx
je 0x5b585d
mov byte [ebx + 0x10c], 4
jmp 0x5b5882
cmp byte [ebx + 0x10e], 3
setne dl
add edx, 5
mov byte [ebx + 0x10c], dl
jmp 0x5b5882
mov byte [ebx + 0x10c], 5
jmp 0x5b5882
mov byte [ebx + 0x10c], 1
cmp al, 2
je 0x5b588f
cmp al, 3
je 0x5b588f
test ch, 0x30
je 0x5b58a4
cmp byte [ebx + 0x10c], 1
je 0x5b58a4
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 0x11c]
mov edx, esi
and edx, 0x20000000
je 0x5b58ce
test ch, 0xc
je 0x5b58ce
cmp byte [ebx + 0x10c], 5
je 0x5b58ce
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 0x10c]
cmp al, 4
jne 0x5b58ed
cmp byte [ebx + 0x10e], 3
je 0x5b58ed
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
or edi, 1
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x50], 0
jne 0x5b5907
test esi, 0x8000000
je 0x5b5919
or ecx, 4
mov dword [ebx + 0x118], ecx
mov ecx, dword [ebp - 0x10]
or ecx, 2
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0xc]
sub ecx, 0
je 0x5b5954
dec ecx
je 0x5b5975
dec ecx
je 0x5b5943
mov eax, esi
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x20d
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x118]
or ch, 0x40
mov dword [ebx + 0x118], ecx
jmp 0x5b5975
mov ecx, dword [ebx + 0x118]
mov edi, ecx
not ecx
shr ecx, 8
and edi, 0xffffbfff
and ecx, 0x4000
or edi, ecx
mov dword [ebx + 0x118], edi
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x48]
test edi, edi
jne 0x5b5a59
cmp al, 1
je 0x5b5a3d
mov ecx, dword [ebx + 0x118]
test ch, 0x10
jne 0x5b5a3d
test edx, edx
jne 0x5b5a1b
test esi, 0x40000000
jne 0x5b5a1b
test esi, 0x8000000
je 0x5b59d2
test ch, 1
je 0x5b59d2
mov eax, 0x400
or ch, 0x80
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0x118], ecx
jmp 0x5b5b0b
test ch, 2
je 0x5b59f9
or ch, 0x80
mov dword [ebx + 0xb0], 0x800
mov dword [ebx + 0xb4], 0x1fe
mov dword [ebx + 0x118], ecx
jmp 0x5b5b0b
or ch, 0x80
mov dword [ebx + 0xb0], 0x85
mov dword [ebx + 0xb4], 0x84
mov dword [ebx + 0x118], ecx
jmp 0x5b5b0b
or ch, 0x80
mov dword [ebx + 0xb0], 0x400
mov dword [ebx + 0xb4], 0x10000
mov dword [ebx + 0x118], ecx
jmp 0x5b5b0b
mov eax, esi
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x21c
add eax, 0xc0000025
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, 0x8000000
je 0x5b5a77
cmp edi, 1
jl 0x5b5a6b
cmp edi, 0xfffffffa
jbe 0x5b5a77
mov eax, 0xc0000245
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x5b7077
mov ecx, dword [ebx + 0x118]
mov dword [ebx + 0xb4], edi
test ch, 2
je 0x5b5aa4
test ecx, 0x1000000
jne 0x5b5aa4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x78], 0
jne 0x5b5aa4
shl edi, 2
movsx edx, al
dec edx
cmp edx, 6
ja case.default.0x5b5aad
jmp dword [edx*4 + 0x5b7220]
add edi, 4
jmp case.0x5b5aad.1
add edi, 8
jmp case.0x5b5aad.1
test esi, 0x40000000
je case.0x5b5aad.1
or ch, 0x80
mov edi, 0x400
mov dword [ebx + 0xb4], 0x10000
mov dword [ebx + 0x118], ecx
jmp case.0x5b5aad.1
cmp byte [ebx + 0x10e], 3
jne case.0x5b5aad.1
inc edi
jmp case.0x5b5aad.1
push 0x5b9
push 0x636d3c
push 2
push 0xc0000008
call fcn.005a41d0
add esp, 0x10
mov dword [ebx + 0xb0], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
test eax, eax
je 0x5b5b21
mov dword [ebx + 0x44], eax
mov al, byte [edx + 8]
mov byte [ebx + 0x10f], al
mov ecx, dword [edx + 0x3c]
mov dword [ebx + 0x94], ecx
mov eax, dword [edx + 0x6c]
test eax, eax
je 0x5b5b5c
mov ecx, dword [ebx + 0x118]
test ch, 1
jne 0x5b5b5c
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x2c0
add eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
ja case.default.0x5b5b65
jmp dword [eax*4 + 0x5b723c]
mov byte [ebx + 0x111], 0
jmp 0x5b5b85
mov byte [ebx + 0x111], 0x27
jmp 0x5b5b85
mov byte [ebx + 0x111], 0x22
mov eax, dword [edx + 0x70]
test eax, eax
je 0x5b5bb7
mov ecx, dword [ebx + 0x118]
test ch, 1
jne 0x5b5bb7
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x2c2
add eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, 0
je 0x5b5bf2
dec eax
je 0x5b5be2
dec eax
je 0x5b5bf2
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x2c1
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and al, 0x7f
mov dword [ebx + 0x11c], eax
jmp 0x5b5c0c
mov eax, dword [ebx + 0x11c]
mov ecx, eax
and al, 0x7f
shr ecx, 1
and ecx, 0x80
or ecx, eax
mov dword [ebx + 0x11c], ecx
mov eax, dword [edx + 0x74]
test eax, eax
je 0x5b5c51
jle 0x5b5c31
cmp eax, 3
jg 0x5b5c31
mov eax, dword [ebx + 0x118]
test ah, 0x30
je 0x5b5c51
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x2bc
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x8c]
cmp eax, 5
ja case.default.0x5b5c65
mov ecx, 0xfffffffb
jmp dword [eax*4 + 0x5b724c]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x118]
mov eax, dword [ebx + 0x120]
or esi, 2
or ecx, 4
mov dword [ebp - 0x10], esi
mov dword [ebx + 0x118], ecx
or al, 1
jmp 0x5b5ce3
mov eax, dword [ebp - 0x10]
and al, 0xfe
or al, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x120]
or al, 2
jmp 0x5b5ce3
mov eax, dword [ebp - 0x10]
mov esi, dword [ebx + 0x118]
and al, 0xfe
and esi, ecx
and al, 0xfd
mov dword [ebx + 0x118], esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x120]
or al, 4
jmp 0x5b5ce3
mov edi, dword [ebp - 0x10]
mov esi, dword [ebx + 0x118]
mov eax, dword [ebx + 0x120]
and edi, 0xfffffffd
and esi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x118], esi
or al, 8
mov dword [ebx + 0x120], eax
mov eax, dword [ebx + 0x118]
test ah, 1
je 0x5b5d34
test ah, 0xc
jne 0x5b5d25
test ah, 0x10
je 0x5b5d0d
mov dword [ebx + 0xf4], 2
jmp 0x5b5dcb
test ah, 0x20
je 0x5b5dcb
mov dword [ebx + 0xf4], 8
jmp 0x5b5dcb
mov dword [ebx + 0xf4], 3
jmp 0x5b5dcb
test ah, 2
jne 0x5b5d82
mov ecx, dword [ebx + 0x11c]
test ecx, 0x20000000
jne 0x5b5d82
test ecx, 0x40000000
je 0x5b5dcb
test ah, 0xc
jne 0x5b5d76
test ah, 0x10
je 0x5b5d65
mov dword [ebx + 0xf4], 4
jmp 0x5b5dcb
test ah, 0x20
je 0x5b5dcb
mov dword [ebx + 0xf4], 0xa
jmp 0x5b5dcb
mov dword [ebx + 0xf4], 5
jmp 0x5b5dcb
test ah, 0xc
jne 0x5b5da9
test ah, 0x10
je 0x5b5d98
mov dword [ebx + 0xf4], 6
jmp 0x5b5dcb
test ah, 0x20
je 0x5b5dcb
mov dword [ebx + 0xf4], 9
jmp 0x5b5dcb
test dword [ebx + 0x11c], 0x20000000
je 0x5b5dc1
mov dword [ebx + 0xf4], 7
jmp 0x5b5dcb
mov dword [ebx + 0xf4], 0xb
mov eax, dword [edx + 0x80]
test eax, eax
mov eax, dword [0x7083c0]
je 0x5b5dea
test eax, eax
jne 0x5b5dea
mov eax, 0xc0000232
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0x90]
test ecx, ecx
je 0x5b5e0f
test eax, eax
jne 0x5b5e04
mov eax, 0xc0000234
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [edx + 0x94]
mov dword [ebp - 0x18], edi
jmp 0x5b5e12
mov edi, dword [ebp - 0x18]
test eax, eax
jne 0x5b5e6c
lea edx, [ebp - 0x148]
push str.USER
push edx
call fcn.005c4ce0
add esp, 8
test eax, eax
jne 0x5b5e69
mov eax, dword [0x636d68]
lea edi, [ebp - 0x148]
mov dword [ebp - 0x148], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x18]
mov word [ebx + 0x10a], 3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x98]
sub eax, 0
je 0x5b5e89
dec eax
je 0x5b5ec1
dec eax
je 0x5b5e94
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x120]
test ah, 0x80
je 0x5b5ec7
mov eax, dword [ebx + 0x118]
test ah, 0x10
jne 0x5b5ec1
lea eax, [ebp - 0x148]
push eax
push ebx
call fcn.005aba80
add esp, 8
cmp eax, 0xffffffff
jne 0x5b5ec1
mov eax, dword [ebx + 0x120]
or eax, 0x10000
jmp 0x5b5ecc
mov eax, dword [ebx + 0x120]
and eax, 0xfffeffff
lea ecx, [ebp - 0x148]
mov dword [ebx + 0x120], eax
push ecx
push ebx
call fcn.005aba80
mov ecx, eax
add esp, 8
cmp ecx, 0xffffffff
mov dword [ebp - 0x34], ecx
je 0x5b5f4e
mov eax, dword [ebx + 0xf4]
sub eax, 3
je 0x5b5f23
sub eax, 2
je 0x5b5f2d
mov eax, dword [ebx + 0x11c]
test eax, 0x8000000
je 0x5b5f4e
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x1f6
add eax, 0xc0000033
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xf4], 1
test dword [ebx + 0x11c], 0x8000000
je 0x5b5f4e
mov eax, dword [ebx + 0x118]
mov dword [ebp - 8], 3
or al, 8
mov dword [ebx + 0x118], eax
mov eax, dword [0x7083c0]
test eax, eax
jne 0x5b5f68
cmp ecx, 0xfffffffa
jne 0x5b5f64
mov ecx, 1
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x5b5fa9
cmp ecx, 0xfffffffa
je 0x5b5f82
cmp ecx, 1
je 0x5b5f82
test edi, edi
je 0x5b5f82
mov eax, 0xc0000234
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x5b5fa9
cmp ecx, 0xfffffffa
je 0x5b5fa9
cmp ecx, 1
je 0x5b5fa9
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x80]
test eax, eax
je 0x5b5fac
mov eax, 0xc0000232
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
cmp ecx, 0xfffffffc
jne 0x5b6037
cmp word [ebx + 0x10a], 4
jge 0x5b5fea
mov edx, dword [ebx + 0x50]
lea esi, [ebx + 0x50]
push edx
call fcn.005a3d70
add esp, 4
test eax, eax
jne 0x5b7134
push esi
push eax
push 5
call fcn.005a3d00
add esp, 0xc
test eax, eax
jne 0x5b7134
mov eax, dword [str.COM1]
mov cl, byte [0x636d70]
mov dword [ebp - 0x148], eax
mov byte [ebp - 0x144], cl
lea edi, [ebp - 0x148]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp + 8]
mov word [ebx + 0x10a], 4
test ecx, ecx
jl 0x5b607b
cmp dword [ebx + 0xf4], 1
jne 0x5b61a7
cmp ecx, 1
je 0x5b605a
cmp ecx, 2
je 0x5b605a
test ecx, ecx
jne 0x5b61a7
mov eax, dword [0x7083c0]
mov ecx, dword [ebx + 0x120]
and eax, 1
and ecx, 0xffffffbf
shl eax, 6
or eax, ecx
mov dword [ebx + 0x120], eax
jmp 0x5b61a7
mov eax, dword [0x7083c0]
test eax, eax
je 0x5b61a7
cmp ecx, 0xfffffffa
jne 0x5b61a7
mov edx, dword [ebx + 0x120]
mov dword [ebp - 0x30], 0
or edx, 0x40
mov dword [ebx + 0x120], edx
mov ecx, dword [esi + 0x80]
test ecx, ecx
mov eax, edx
je 0x5b60c1
mov ecx, dword [esi + 0x84]
test ecx, ecx
jne 0x5b60c1
and al, 0x7f
jmp 0x5b60c3
or al, 0x80
test edi, edi
mov dword [ebx + 0x120], eax
jne 0x5b60d2
mov edi, 0x100
lea edx, [ebp - 0x2c]
lea eax, [edi + 1]
push edx
push 0
push eax
call fcn.005a3d00
add esp, 0xc
test eax, eax
jne 0x5b7134
mov eax, dword [esi + 0x94]
test eax, eax
jne 0x5b6110
mov ecx, dword [ebx + 0xb8]
mov edx, dword [ebp - 0x2c]
push ecx
push str.Unit__i
push edx
call fcn.005bfd29
add esp, 0xc
jmp 0x5b612b
mov eax, dword [esi + 0x90]
mov ecx, dword [ebp - 0x2c]
push edi
push eax
push ecx
call fcn.005bff10
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov byte [edx + edi], 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.005bf460
add esp, 4
cmp eax, 0xffffffff
mov dword [ebx + 0xa4], eax
jne 0x5b6162
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x24f
add eax, 0xc0000009
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x120], 0x80
je 0x5b6193
push eax
call fcn.005bf460
mov ecx, dword [ebx + 0xa4]
add esp, 4
push ecx
call fcn.005bf460
add esp, 4
test eax, eax
jne 0x5b6193
mov eax, 0xc000028e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005a3d70
add esp, 4
test eax, eax
jne 0x5b7134
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
je 0x5b6247
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x5b6224
mov ecx, dword [ebx + 0xb8]
lea edi, [ebp - 0x148]
mov dword [ebp - 0x1c], ecx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 0x118]
mov dword [ebp - 0x18], 0
not ecx
dec ecx
or eax, 0x20000
mov dword [ebx + 0x118], eax
mov eax, dword [edx + 0x64]
push ecx
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x18]
push ecx
push edx
lea ecx, [ebp - 4]
lea edx, [ebp - 8]
push ecx
push edx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x10]
push ecx
push edx
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x148]
push ecx
push edx
call eax
add esp, 0x24
jmp 0x5b6241
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
push 0
push eax
mov eax, dword [ebp - 0x14]
push ecx
push 0
push edx
lea ecx, [ebp - 0x148]
push eax
push ecx
call esi
mov dword [ebx + 0xa4], eax
mov eax, dword [ebx + 0xa4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x5b6344
mov eax, dword [ebx + 0x118]
test eax, 0x400000
jne 0x5b6344
test al, 2
jne 0x5b6344
test byte [ebx + 0x11c], 0x40
jne 0x5b6344
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5b6344
call edi
cmp eax, 5
je 0x5b62a9
cmp eax, 0x13
je 0x5b62a9
test dword [ebx + 0x11c], 0x8000000
je 0x5b6344
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push 0
and eax, 0x3fffffff
push edx
mov edx, dword [ebp - 0x10]
push ecx
or eax, 0x80000000
push 0
push edx
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x148]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebx + 0xa4], eax
jne 0x5b6324
test dword [ebx + 0x11c], 0x8000000
je 0x5b6324
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push 0
and eax, 0x3fffffff
push ecx
mov ecx, dword [ebp - 0x10]
push edx
or eax, 0x40000000
push 0
push ecx
lea edx, [ebp - 0x148]
push eax
push edx
mov dword [ebp - 0x14], eax
call esi
mov dword [ebx + 0xa4], eax
mov eax, dword [ebx + 0x11c]
or al, 0x40
jmp 0x5b633e
mov ecx, dword [ebx + 0x118]
mov eax, dword [ebx + 0x11c]
or ecx, 2
or eax, 0x400000
mov dword [ebx + 0x118], ecx
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0xa4]
cmp ecx, 0xffffffff
jne 0x5b640b
call edi
lea esi, [eax - 2]
cmp esi, 0xcc
ja case.0x5b636c.13
xor ecx, ecx
mov cl, byte [esi + 0x5b7294]
jmp dword [ecx*4 + 0x5b7264]
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x23d
add eax, 0xc000001d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc000002b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x24f
add eax, 0xc000000a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x24f
add eax, 0xc0000009
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc000002a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x23d
add eax, 0xc000001e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7083c0]
test eax, eax
je 0x5b6431
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x5b642a
test eax, eax
je 0x5b642a
cmp eax, 2
je 0x5b642a
cmp eax, 0xfffffffa
jne 0x5b6431
mov eax, 2
jmp 0x5b6438
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov cl, byte [ebx + 0x10e]
test cl, cl
jne 0x5b64ca
mov cl, byte [ebx + 0x10c]
cmp cl, 1
mov ecx, dword [ebx + 0x11c]
jne 0x5b6478
test ecx, 0x8000000
je 0x5b646f
mov ecx, dword [ebx + 0x118]
test ch, 0x10
je 0x5b646f
test ch, 1
jne 0x5b64c3
mov byte [ebx + 0x10e], 3
jmp 0x5b64ca
test ecx, 0x8000000
je 0x5b64a2
cmp dword [ebx + 0xf4], 1
je 0x5b64ba
mov ecx, dword [ebx + 0x118]
test ch, 1
je 0x5b64c3
cmp eax, 2
jne 0x5b64c3
mov byte [ebx + 0x10e], 1
jmp 0x5b64ca
mov ecx, dword [ebx + 0x118]
test ch, 1
je 0x5b64c3
cmp eax, 2
jne 0x5b64c3
test ecx, 0x400000
je 0x5b64c3
mov byte [ebx + 0x10e], 1
jmp 0x5b64ca
mov byte [ebx + 0x10e], 2
mov cl, byte [ebx + 0x10e]
cmp cl, 3
je 0x5b64e4
cmp byte [ebx + 0x10c], 1
je 0x5b64e4
inc dword [ebx + 0xb0]
cmp cl, 1
jne 0x5b64f9
cmp byte [ebx + 0x10c], 1
je 0x5b64f9
add dword [ebx + 0xb0], 5
mov ecx, dword [ebx + 0x118]
test ecx, 0x400000
je 0x5b651b
test ch, 0x10
je 0x5b651b
cmp byte [ebx + 0x10d], 2
jne 0x5b651b
inc dword [ebx + 0xb0]
test dword [ebx + 0x11c], 0x8000000
je 0x5b6538
test ch, 0x10
je 0x5b6538
test ch, 1
je 0x5b6538
add dword [ebx + 0xb0], 2
cmp eax, 1
jne 0x5b6545
or ecx, 0x800000
jmp 0x5b654b
and ecx, 0xff7fffff
mov eax, ecx
mov dword [ebx + 0x118], ecx
test ah, 1
je 0x5b6614
push ebx
call fcn.005b48b0
add esp, 4
test eax, eax
jne 0x5b7134
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5b657b
xor ecx, ecx
mov cl, byte [eax + 0x1e]
jmp 0x5b657d
xor ecx, ecx
test ecx, ecx
je 0x5b6614
test eax, eax
je 0x5b658e
mov edi, dword [eax + 0xc]
jmp 0x5b6590
xor edi, edi
test byte [edi + 0x11c], 4
je 0x5b65ca
cmp byte [edi + 0x10e], 1
jne 0x5b65ca
mov eax, dword [edi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x5b65b3
mov byte [eax + 5], 0x24
jmp 0x5b65bc
cmp cl, 0x2b
jne 0x5b65bc
mov byte [eax + 5], 0
mov eax, dword [edi + 0x11c]
and al, 0xfb
mov dword [edi + 0x11c], eax
push edi
call fcn.005abf20
mov ecx, dword [ebx + 0x7c]
add esp, 4
test ecx, ecx
je 0x5b65de
mov byte [ecx + 0x1e], 0
test eax, eax
je 0x5b65f6
push edi
push eax
push eax
push 1
call fcn.005a4200
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x90]
mov eax, dword [edi + 0x11c]
inc ecx
and eax, 0xfff7ffff
mov dword [edi + 0x90], ecx
mov dword [edi + 0x11c], eax
mov eax, dword [ebx + 0x118]
test ah, 0x10
je 0x5b6632
test eax, 0x800000
jne 0x5b6632
mov eax, 0xc0000033
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je case.default.0x5b669e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x54], 5
jne 0x5b668f
mov eax, dword [ebx + 0xa4]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5b6670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xa8], eax
mov esi, 0xc0000026
mov ecx, dword [ebx + 0x118]
and ecx, 0x7fffffff
test esi, esi
mov dword [ebx + 0x118], ecx
je 0x5b668f
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x74]
cmp eax, 3
ja case.default.0x5b669e
jmp dword [eax*4 + 0x5b7364]
or dword [ebx + 0x11c], 0x80000
jmp case.default.0x5b669e
mov ecx, dword [ebx + 0x118]
mov dword [ebx + 0x90], 1
and ch, 0xfb
mov dword [ebx + 0x118], ecx
jmp 0x5b66df
cmp dword [ecx + 0x54], 5
jne 0x5b66ee
mov dword [ebx + 0x90], 0x80000000
and dword [ebx + 0x11c], 0xfff7ffff
jmp case.default.0x5b669e
test dword [ebx + 0x118], 0x800000
je case.default.0x5b669e
mov ecx, dword [ebx + 0xa4]
mov esi, 2
push esi
push 0
push 0
push ecx
call edi
cmp eax, 0xffffffff
jne 0x5b6732
mov edx, dword [ebx + 0xa4]
push 1
push 0
push 0
push edx
call edi
test eax, eax
je case.default.0x5b669e
jmp 0x5b6cb3
mov eax, dword [ebx + 0x118]
mov ecx, dword [ebx + 0x11c]
and ah, 0xfb
and ecx, 0xfff7ffff
mov dword [ebx + 0x118], eax
mov al, byte [ebx + 0x10c]
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x90], 0x80000000
movsx ecx, al
dec ecx
cmp ecx, 6
ja case.default.0x5b6770
jmp dword [ecx*4 + 0x5b7374]
mov eax, dword [ebx + 0xa4]
push 1
push 0
push 0
push eax
call edi
mov ecx, dword [ebx + 0xa4]
push 1
push 0
push 0xfffffffffffffff7
push ecx
mov esi, eax
call edi
sub esi, eax
cmp esi, 9
je 0x5b67bb
mov edx, dword [ebx + 0xa4]
push 2
push 0
push 0
push edx
call edi
cmp eax, 0xffffffff
jne 0x5b6baa
jmp 0x5b6cb3
test byte [ebx + 0x11c], 0x40
je 0x5b682a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x5b682a
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push 0
push ecx
push edx
push 0
push 3
lea eax, [ebp - 0x148]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
mov esi, eax
push 0
push 0xfffffffffffffff7
push esi
call edi
lea ecx, [ebp + 0xc]
push 0
push ecx
lea edx, [ebp - 0x28]
push 9
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xa4]
push 2
push 0
push 0
push eax
call edi
mov eax, dword [ebp - 0x18]
jmp 0x5b6843
mov eax, dword [ebx + 0xa4]
lea ecx, [ebp + 0xc]
push 0
push ecx
lea edx, [ebp - 0x28]
push 9
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b6d84
cmp dword [ebp + 0xc], 9
je 0x5b686e
mov ecx, dword [ebx + 0xa4]
push 2
push 0
push 0
push ecx
call edi
cmp eax, 0xffffffff
jne 0x5b6baa
jmp 0x5b6cb3
test byte [ebx + 0x11c], 2
je 0x5b68ab
mov eax, dword [ebp - 0x23]
mov edx, dword [ebp - 0x22]
mov ecx, dword [ebp - 0x21]
and eax, 0xff
shl eax, 8
and edx, 0xff
and ecx, 0xff
or eax, edx
mov edx, dword [ebp - 0x20]
shl eax, 8
or eax, ecx
and edx, 0xff
shl eax, 8
or eax, edx
jmp 0x5b68dd
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x21]
mov edx, dword [ebp - 0x22]
and eax, 0xff
shl eax, 8
and ecx, 0xff
and edx, 0xff
or eax, ecx
mov ecx, dword [ebp - 0x23]
shl eax, 8
or eax, edx
and ecx, 0xff
shl eax, 8
or eax, ecx
cmp eax, 1
jne case.default.0x5b669e
cmp byte [ebp - 0x24], 0x1a
jne case.default.0x5b669e
push 1
push 0
push 0xfffffffffffffff7
jmp 0x5b6b41
cmp al, 7
mov dword [ebp - 0xc], 3
jne 0x5b690f
cmp byte [ebx + 0x10e], 3
je 0x5b6928
cmp al, 5
jne 0x5b692b
mov al, byte [ebx + 0x10e]
cmp al, 3
jne 0x5b6924
mov dword [ebp - 0xc], 1
cmp al, 2
jne 0x5b692b
mov dword [ebp - 0xc], esi
mov eax, dword [ebx + 0xa4]
push 1
push 0
push 0
push eax
call edi
mov ecx, dword [ebx + 0xa4]
mov esi, eax
mov eax, dword [ebp - 0xc]
push 1
neg eax
push 0
push eax
push ecx
mov dword [ebp - 0x1c], eax
call edi
sub esi, eax
mov eax, dword [ebp - 0xc]
cmp esi, eax
jne 0x5b69ff
test byte [ebx + 0x11c], 0x40
je 0x5b69d2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x5b69d2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push 0
push ecx
push edx
push 0
push 3
lea eax, [ebp - 0x148]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x1c]
push 2
mov esi, eax
push 0
push ecx
push esi
call edi
mov eax, dword [ebp - 0xc]
lea edx, [ebp + 0xc]
push 0
push edx
lea ecx, [ebp - 0x28]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 0xa4]
push 2
push 0
push 0
push edx
call edi
mov eax, dword [ebp - 0x18]
jmp 0x5b69ed
mov ecx, dword [ebp - 0xc]
lea eax, [ebp + 0xc]
push 0
push eax
mov eax, dword [ebx + 0xa4]
lea edx, [ebp - 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b6d84
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x5b6a1c
mov edx, dword [ebx + 0xa4]
push 2
push 0
push 0
push edx
call edi
cmp eax, 0xffffffff
jne 0x5b6baa
jmp 0x5b6cb3
cmp byte [ebp - 0x28], 0x1a
jne case.default.0x5b669e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0xa4]
push 1
push 0
push eax
push ecx
call edi
cmp eax, 0xffffffff
jne case.default.0x5b669e
jmp 0x5b6d84
mov edx, dword [ebx + 0xa4]
push 1
push 0
push 0
push edx
call edi
mov esi, eax
mov eax, dword [ebx + 0xa4]
push 1
push 0
push 0xfffffffffffffffc
push eax
call edi
sub esi, eax
cmp esi, 4
je 0x5b6a89
mov ecx, dword [ebx + 0xa4]
push 2
push 0
push 0
push ecx
call edi
cmp eax, 0xffffffff
jne 0x5b6baa
jmp 0x5b6cb3
test byte [ebx + 0x11c], 0x40
je 0x5b6af8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x5b6af8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push 0
push eax
push ecx
push 0
push 3
lea edx, [ebp - 0x148]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 1
mov esi, eax
push 0
push 0xfffffffffffffffc
push esi
call edi
lea eax, [ebp + 0xc]
push 0
push eax
lea ecx, [ebp - 0x28]
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 0xa4]
push 2
push 0
push 0
push edx
call edi
mov eax, dword [ebp - 0x18]
jmp 0x5b6b11
mov edx, dword [ebx + 0xa4]
lea eax, [ebp + 0xc]
push 0
push eax
lea ecx, [ebp - 0x28]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b6d84
cmp dword [ebp + 0xc], 4
jne 0x5b6b92
xor ecx, ecx
mov ch, byte [ebp - 0x27]
mov cl, byte [ebp - 0x28]
cmp cx, 1
jne case.default.0x5b669e
cmp byte [ebp - 0x26], 0x1a
jne case.default.0x5b669e
push 1
push 0
push 0xfffffffffffffffc
mov edx, dword [ebx + 0xa4]
push edx
call edi
cmp eax, 0xffffffff
jne case.default.0x5b669e
jmp 0x5b6d84
mov eax, dword [ebx + 0xa4]
push 1
push 0
push 0
push eax
mov dword [ebp - 0x1c], 1
call edi
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ebx + 0xa4]
push 1
push 0
neg ecx
push ecx
push edx
mov esi, eax
call edi
mov ecx, dword [ebx + 0xb0]
sub esi, eax
cmp esi, ecx
je 0x5b6bda
mov eax, dword [ebx + 0xa4]
push 2
push 0
push 0
push eax
call edi
cmp eax, 0xffffffff
je 0x5b6cb3
mov ecx, dword [ebx + 0x11c]
mov eax, dword [ebx + 0x118]
and ecx, 0xfff7ffff
and ah, 0xfb
mov dword [ebx + 0x90], 0x80000000
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x118], eax
jmp case.default.0x5b669e
lea edx, [ebp - 0xc]
push edx
push 0
push ecx
call fcn.005a3d00
add esp, 0xc
test eax, eax
jne 0x5b7134
test byte [ebx + 0x11c], 0x40
je 0x5b6c6c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x5b6c6c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push 0
push ecx
push edx
push 0
push 3
lea eax, [ebp - 0x148]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebx + 0xb0]
push 2
neg ecx
mov esi, eax
push 0
push ecx
push esi
call edi
mov eax, dword [ebx + 0xb0]
mov ecx, dword [ebp - 0xc]
lea edx, [ebp + 0xc]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 0xa4]
push 2
push 0
push 0
push edx
call edi
mov eax, dword [ebp - 0x18]
jmp 0x5b6c8a
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ebp - 0xc]
lea eax, [ebp + 0xc]
push 0
push eax
mov eax, dword [ebx + 0xa4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b6d84
mov esi, dword [ebx + 0xb0]
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x5b6d11
mov ecx, dword [ebx + 0xa4]
push 2
push 0
push 0
push ecx
call edi
cmp eax, 0xffffffff
jne 0x5b6ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xa8], eax
mov eax, 0xc0000078
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x11c]
mov eax, dword [ebx + 0x118]
mov edx, dword [ebp - 0xc]
and ecx, 0xfff7ffff
and ah, 0xfb
push edx
mov dword [ebx + 0x90], 0x80000000
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x118], eax
call fcn.005a3d70
add esp, 4
test eax, eax
je case.default.0x5b669e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x118]
test ah, 2
jne 0x5b6d2c
test dword [ebx + 0x11c], 0x60000000
jne 0x5b6d2c
mov cl, 0x20
jmp 0x5b6d2e
xor cl, cl
mov edx, dword [ebp - 0xc]
cmp byte [edx], 0x1a
je 0x5b6d3a
xor esi, esi
jmp 0x5b6d55
lea eax, [edx + 1]
add esi, edx
cmp eax, esi
jae 0x5b6d52
cmp byte [eax], cl
jne 0x5b6d4e
inc eax
cmp eax, esi
jb 0x5b6d43
jmp 0x5b6d52
xor esi, esi
jmp 0x5b6d55
mov esi, dword [ebp - 0x1c]
push edx
call fcn.005a3d70
add esp, 4
test eax, eax
jne 0x5b7134
test esi, esi
je case.default.0x5b669e
mov ecx, dword [ebx + 0xa4]
push 1
push eax
mov eax, dword [ebx + 0xb0]
neg eax
push eax
push ecx
call edi
cmp eax, 0xffffffff
jne case.default.0x5b669e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xa8], eax
mov eax, 0xc000001e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xbeb
push 0x636d7c
push esi
push 0xc0000008
call fcn.005a41d0
add esp, 0x10
mov eax, dword [ebx + 0x118]
test ah, 4
je 0x5b6e1a
test eax, 0x800000
je 0x5b6e1a
mov eax, dword [ebx + 0xa4]
lea edx, [ebp - 0x1c]
push 2
push edx
push 0
push eax
mov dword [ebp - 0x1c], 0
call edi
cmp eax, 0xffffffff
jne 0x5b6dff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebx + 0xa8], eax
je 0x5b6dff
mov eax, 0xc0000078
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
mov dword [ebx + 0x90], 0x80000000
and eax, 0xfff7ffff
mov dword [ebx + 0x11c], eax
mov eax, dword [ebx + 0x118]
test ah, 4
jne 0x5b6e4d
test eax, 0x800000
je 0x5b6e4d
mov edx, dword [ebx + 0x11c]
mov ecx, 0x8000000
test ecx, edx
je 0x5b6e40
test ah, 0x10
jne 0x5b6e52
or eax, 0x80000000
mov dword [ebx + 0x118], eax
jmp 0x5b6e52
mov ecx, 0x8000000
mov eax, dword [ebx + 0x118]
test ah, 0x80
jne 0x5b6e6d
mov dx, word [ebx + 0xb0]
mov word [ebx + 0x108], dx
jmp 0x5b6ec0
mov al, byte [ebx + 0x10e]
cmp al, 1
mov eax, dword [ebx + 0x11c]
jne 0x5b6ea8
test ecx, eax
je 0x5b6e8c
mov word [ebx + 0x108], 0x50
jmp 0x5b6e95
mov word [ebx + 0x108], 0x51
cmp byte [ebx + 0x10c], 1
je 0x5b6ec0
add word [ebx + 0x108], 4
jmp 0x5b6ec0
test ecx, eax
je 0x5b6eb7
mov word [ebx + 0x108], 0x4f
jmp 0x5b6ec0
mov word [ebx + 0x108], 0x50
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x5b6ed1
mov dword [esi + 0x14], 1
test dword [ebx + 0x11c], ecx
je 0x5b6ee8
mov edx, dword [esi + 0x10]
mov eax, 0x7ffffe00
cmp edx, eax
jle 0x5b6ee8
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x5b6f07
mov eax, dword [ebx + 0x11c]
and eax, ecx
neg eax
sbb eax, eax
and eax, 0xffffe400
add eax, 0x2000
jmp 0x5b6f1b
add eax, 0x1ff
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
shl eax, 9
mov dword [esi + 0x10], eax
imul eax, dword [esi + 0x14]
mov ecx, dword [ebx + 0xb0]
cmp ecx, eax
jbe 0x5b6f2e
mov eax, ecx
mov dword [ebx + 0xac], eax
mov eax, dword [ebx + 0x118]
mov ecx, dword [esi + 0x10]
test ah, 1
mov dword [ebx + 0xf8], ecx
je 0x5b6f7b
lea edx, [ebp + 8]
push edx
push 0
push 0x54
call fcn.005a3d00
add esp, 0xc
test eax, eax
je 0x5b6f70
push ebx
push eax
push eax
push 1
call fcn.005a4200
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov dword [eax], ebx
mov eax, dword [ebx + 0x118]
test ah, 2
jne 0x5b6f92
test dword [ebx + 0x11c], 0x60000000
je 0x5b6fa4
push esi
push ebx
call fcn.005ab600
add esp, 8
test eax, eax
jne 0x5b7134
mov eax, dword [ebx + 0xac]
lea esi, [ebx + 0x28]
push esi
push 0
push eax
call fcn.005a3d00
mov ecx, eax
add esp, 0xc
test ecx, ecx
mov dword [ebp + 8], ecx
je 0x5b6fc9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [ebx + 0xb0]
mov dword [ebx + 0x2c], eax
add eax, edx
mov edx, dword [ebp - 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0xfc], edx
test eax, eax
je 0x5b7016
cmp dword [ebx + 0xf4], 7
jne 0x5b7016
mov eax, dword [ebx + 0xa4]
push 1
push 0
push 0
push eax
call edi
test eax, eax
jne 0x5b7013
mov eax, dword [ebx + 0x120]
or al, 0x20
mov dword [ebx + 0x120], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x118]
mov eax, 1
or edx, eax
mov dword [ebx + 0x118], edx
mov dword [0x70836c], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x20f
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x2bf
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc0000025
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x20e
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x20a
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x20c
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x20b
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x11c]
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0x2bd
add eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x118]
test al, 0x10
je 0x5b7151
mov eax, 0xc000002e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or al, 0x40
jmp 0x5b5633
mov eax, dword [ebx + 0x118]
test al, 0x10
je 0x5b5631
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret