Function at 0x54a7f0
Capabilities:
Check for software breakpoints
Clear file content
Inspect section memory permissions
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 1
push esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x12c]
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 0x54a841
cmp dword [eax + 0x7c], esi
jne 0x54a841
cmp dword [eax + 0x2c], esi
jne 0x54a841
cmp dword [eax + 0x54], esi
jne 0x54a841
mov dword [eax + 0x54], 3
mov ecx, dword [eax + 0x54]
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x150]
push ecx
lea eax, [ebp - 0x4c]
push edx
push eax
push ebx
call fcn.0054cc40
add esp, 0x10
cmp eax, esi
jne 0x54c9da
lea edi, [ebp - 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebx + 0x50]
mov word [ebx + 0x11a], cx
push eax
movsx ecx, cx
inc ecx
push esi
push ecx
call fcn.0053f0b0
add esp, 0xc
cmp eax, esi
jne 0x54c9da
lea edi, [ebp - 0x150]
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 eax, dword [ebx + 0x90]
mov ecx, dword [ebx + 0x94]
or eax, ecx
jne 0x54a8f8
xor edx, edx
mov dword [ebx + 0x90], 1
mov dword [ebx + 0x94], edx
jmp 0x54a8fa
xor edx, edx
mov ecx, dword [ebp + 8]
mov edi, 2
cmp dword [ecx + 0x44], edx
je 0x54a93c
mov eax, dword [ebp - 4]
mov esi, dword [ebx + 0x128]
or al, 0x80
or esi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x128], esi
mov esi, dword [ebx + 0x12c]
or eax, 0x80000000
or esi, 0x400000
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x12c], esi
jmp 0x54a94f
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.0x54a960
mov esi, 0x40
jmp dword [ecx*4 + 0x54c9e4]
test byte [ebx + 0x128], 2
je 0x54a97c
pop edi
pop esi
mov eax, 0xc000002e
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 + 0x12c]
test ecx, 0x8000000
je case.0x54a960.0
jmp 0x54a9f9
mov ecx, dword [ebx + 0x128]
and eax, 0x3fffffff
or ecx, edi
mov dword [ebx + 0x128], ecx
mov ecx, dword [ebp - 4]
or cl, 0x80
or eax, 0x80000000
mov dword [ebp - 4], ecx
jmp 0x54a9f6
test byte [ebx + 0x128], 2
je 0x54a9d5
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x12c]
and eax, 0x3fffffff
or ecx, esi
mov dword [ebx + 0x12c], 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.0x54aa0e
jmp dword [ecx*4 + 0x54c9f4]
test byte [ebx + 0x128], 2
je 0x54aa2a
pop edi
pop esi
mov eax, 0xc000002e
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 + 0x12c]
or esi, 0x80
test eax, 0x8000000
mov dword [ebp - 4], esi
je case.0x54aa0e.0
jmp 0x54aaaf
mov ecx, dword [ebx + 0x128]
and eax, 0x3fffffff
or ecx, edi
mov edi, dword [ebp - 4]
or edi, 0x80
mov dword [ebx + 0x128], ecx
mov dword [ebp - 4], edi
or eax, 0x80000000
jmp 0x54aaac
test byte [ebx + 0x128], 2
je 0x54aa88
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x12c]
mov edi, dword [ebp - 4]
or ecx, esi
or edi, 0x80
and eax, 0x3fffffff
mov dword [ebx + 0x12c], 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.0x54aac0
jmp dword [eax*4 + 0x54ca04]
mov eax, dword [ebx + 0x128]
or ah, 8
jmp 0x54ab01
mov eax, dword [ebx + 0x128]
or ah, 0x10
jmp 0x54ab01
mov eax, dword [ebx + 0x128]
or ah, 0x20
jmp 0x54ab01
mov eax, dword [ebx + 0x128]
test al, 2
je 0x54aafe
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
or ah, 0xc
mov dword [ebx + 0x128], eax
mov eax, dword [ecx + 0x54]
cmp eax, 5
ja case.default.0x54ab13
jmp dword [eax*4 + 0x54ca18]
test dword [ebx + 0x12c], 0x8000000
je case.0x54ab13.4
lea edx, [ebp - 0x150]
push 0x588620
push edx
call fcn.00563730
add esp, 8
test eax, eax
jne case.0x54ab13.4
mov eax, dword [ebx + 0x128]
or al, 0x20
mov dword [ebx + 0x128], eax
mov eax, dword [ebx + 0x128]
test al, 2
je 0x54ab62
test dword [ebx + 0x12c], 0x8000000
je 0x54ab72
test dword [ebx + 0x12c], 0x400000
je 0x54ac2c
or al, 8
mov dword [ebx + 0x128], eax
mov eax, dword [ebp - 8]
or al, 3
jmp 0x54ac31
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebp - 8]
or ecx, 8
or al, 3
mov dword [ebx + 0x128], ecx
jmp 0x54ac31
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x54a970
test ah, 4
je 0x54abc0
test dword [ebx + 0x12c], 0x8000000
je 0x54a970
mov eax, dword [ebp - 8]
or al, 1
jmp 0x54ac31
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x54a970
test ah, 4
je 0x54abea
test dword [ebx + 0x12c], 0x8000000
je 0x54a970
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 + 0x128], eax
jmp 0x54ac34
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x54a970
test ah, 4
je 0x54ac2c
test dword [ebx + 0x12c], 0x8000000
je 0x54a970
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.0x54ae2b
jmp dword [eax*4 + 0x54ca30]
test byte [ebx + 0x128], 0x10
je case.0x54ac43.0
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x128], 0x10
je case.0x54ac43.2
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x128]
test al, 2
je 0x54ac8a
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
or al, 0x20
mov dword [ebx + 0x128], eax
mov ecx, dword [edx + 0x28]
cmp ecx, 5
jne 0x54ac9e
or al, 0x40
jmp 0x54aca5
cmp ecx, 6
jne case.0x54ac43.0
or al, 0x80
mov dword [ebx + 0x128], eax
mov eax, dword [edx + 0x34]
cmp eax, 4
ja case.default.0x54acc1
mov esi, 0x200
mov ecx, 0x20000000
jmp dword [eax*4 + 0x54ca4c]
mov eax, dword [ebx + 0x128]
test ah, 0x30
jne 0x54ad0d
or ah, 1
mov dword [ebx + 0x128], eax
jmp 0x54ad62
mov eax, dword [ebx + 0x128]
test al, 0x10
je 0x54ac9a
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x128]
test al, 0x10
je 0x54aca3
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebx + 0x130], 0x2000
jne 0x54ad47
or eax, esi
mov dword [ebx + 0x128], eax
jmp 0x54ad62
mov eax, dword [ebx + 0x128]
or ah, 1
mov dword [ebx + 0x128], eax
jmp 0x54ad62
mov eax, dword [ebx + 0x130]
test ah, 0x20
jne 0x54ad47
or dword [ebx + 0x128], esi
jmp 0x54ad62
mov eax, dword [ebx + 0x12c]
or eax, ecx
jmp 0x54ad5c
mov eax, dword [ebx + 0x12c]
or eax, 0x40000000
mov dword [ebx + 0x12c], eax
mov al, byte [edx + 0x4c]
mov byte [ebx + 0x11c], al
mov eax, dword [edx + 0x4c]
cmp eax, 7
ja case.default.0x54ae2b
jmp dword [eax*4 + 0x54ca60]
mov eax, dword [ebx + 0x128]
test ah, 0x31
je case.0x54ad77.0
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x11c], 4
mov cl, byte [edx + 0x18]
mov byte [ebx + 0x11e], cl
mov eax, dword [edx + 0x18]
test eax, eax
je 0x54add3
jle 0x54adb3
cmp eax, 3
jle 0x54ae1f
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x2c2
add eax, 0xc0000030
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x12c]
test ecx, 0x8000000
je 0x54adfa
mov eax, dword [ebx + 0x128]
test ah, 0x10
je 0x54adfa
test ah, 1
je 0x54adfa
mov byte [ebx + 0x11e], 2
jmp 0x54ae1f
mov al, byte [ebx + 0x11c]
cmp al, 1
je 0x54ae18
cmp al, 4
je 0x54ae18
test dword [ebx + 0x128], esi
jne 0x54ae18
test ecx, 0x60000000
je 0x54ae1f
mov byte [ebx + 0x11e], 3
mov eax, dword [edx + 0x40]
cmp eax, 3
ja case.default.0x54ae2b
jmp dword [eax*4 + 0x54ca80]
mov ecx, dword [ebx + 0x128]
test ch, 0x20
jne 0x54aeab
mov byte [ebx + 0x11d], 1
jmp 0x54aeb2
mov ecx, dword [ebx + 0x128]
test ch, 0x10
je 0x54ae6b
mov al, byte [ebx + 0x11c]
cmp al, 1
je 0x54ae6b
test al, al
je 0x54ae6b
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test ch, 0x20
je 0x54ae3d
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x128]
test ch, 0x20
je 0x54ae93
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x11d], 2
jmp 0x54aeb2
mov ecx, dword [ebx + 0x128]
test ch, 0x14
jne 0x54a970
mov byte [ebx + 0x11d], 3
mov al, byte [ebx + 0x11d]
cmp al, 2
je 0x54aec1
test ch, 0x10
je 0x54aec8
or dword [ebp - 4], 0x10000000
mov edi, dword [edx + 0x4c]
test edi, edi
jne 0x54af1a
cmp al, 2
je 0x54af13
cmp al, 3
je 0x54af13
test ch, 0x30
jne 0x54af13
test dword [ebx + 0x12c], 0x60000000
jne 0x54af0a
test esi, ecx
je 0x54aef5
mov byte [ebx + 0x11c], 4
jmp 0x54af1a
cmp byte [ebx + 0x11e], 3
setne dl
add edx, 5
mov byte [ebx + 0x11c], dl
jmp 0x54af1a
mov byte [ebx + 0x11c], 5
jmp 0x54af1a
mov byte [ebx + 0x11c], 1
cmp al, 2
je 0x54af27
cmp al, 3
je 0x54af27
test ch, 0x30
je 0x54af3c
cmp byte [ebx + 0x11c], 1
je 0x54af3c
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 0x12c]
mov edx, esi
and edx, 0x20000000
je 0x54af66
test ch, 0xc
je 0x54af66
cmp byte [ebx + 0x11c], 5
je 0x54af66
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 0x11c]
cmp al, 4
jne 0x54af85
cmp byte [ebx + 0x11e], 3
je 0x54af85
pop edi
pop esi
mov eax, 0xc000002e
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 0x54af9f
test esi, 0x8000000
je 0x54afc0
or ecx, 4
mov dword [ebx + 0x128], ecx
mov ecx, dword [ebx + 0x130]
and ecx, 0xfffffffe
mov dword [ebx + 0x130], ecx
mov ecx, dword [ebp - 0x10]
or ecx, 2
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0xc]
sub ecx, 0
je 0x54affb
dec ecx
je 0x54b019
dec ecx
je 0x54afea
mov eax, esi
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x20d
add eax, 0xc0000030
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x128]
or ch, 0x40
mov dword [ebx + 0x128], ecx
jmp 0x54b019
mov ecx, dword [ebx + 0x128]
mov edi, ecx
and ch, 0xbf
not edi
shr edi, 8
and edi, 0x4000
or edi, ecx
mov dword [ebx + 0x128], edi
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x48]
test edi, edi
jne 0x54b0fd
cmp al, 1
je 0x54b0e1
mov ecx, dword [ebx + 0x128]
test ch, 0x10
jne 0x54b0e1
test edx, edx
jne 0x54b0bf
test esi, 0x40000000
jne 0x54b0bf
test esi, 0x8000000
je 0x54b076
test ch, 1
je 0x54b076
mov eax, 0x400
or ch, 0x80
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0x128], ecx
jmp 0x54b1af
test ch, 2
je 0x54b09d
or ch, 0x80
mov dword [ebx + 0xb4], 0x800
mov dword [ebx + 0xb8], 0x1fe
mov dword [ebx + 0x128], ecx
jmp 0x54b1af
or ch, 0x80
mov dword [ebx + 0xb4], 0x85
mov dword [ebx + 0xb8], 0x84
mov dword [ebx + 0x128], ecx
jmp 0x54b1af
or ch, 0x80
mov dword [ebx + 0xb4], 0x400
mov dword [ebx + 0xb8], 0x10000
mov dword [ebx + 0x128], ecx
jmp 0x54b1af
mov eax, esi
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x21c
add eax, 0xc0000025
mov esp, ebp
pop ebp
ret
test esi, 0x8000000
je 0x54b11b
cmp edi, 1
jl 0x54b10f
cmp edi, 0xfffffffa
jbe 0x54b11b
pop edi
pop esi
mov eax, 0xc0000245
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x54c935
mov ecx, dword [ebx + 0x128]
mov dword [ebx + 0xb8], edi
test ch, 2
je 0x54b148
test ecx, 0x1000000
jne 0x54b148
mov edx, dword [ebp + 8]
cmp dword [edx + 0x78], 0
jne 0x54b148
shl edi, 2
movsx edx, al
dec edx
cmp edx, 6
ja case.default.0x54b151
jmp dword [edx*4 + 0x54ca90]
add edi, 4
jmp case.0x54b151.1
add edi, 8
jmp case.0x54b151.1
test esi, 0x40000000
je case.0x54b151.1
or ch, 0x80
mov edi, 0x400
mov dword [ebx + 0xb8], 0x10000
mov dword [ebx + 0x128], ecx
jmp case.0x54b151.1
cmp byte [ebx + 0x11e], 3
jne case.0x54b151.1
inc edi
jmp case.0x54b151.1
push 0x5db
push 0x588628
push 2
push 0xc0000008
call fcn.005469f0
add esp, 0x10
mov dword [ebx + 0xb4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
test eax, eax
je 0x54b1c5
mov dword [ebx + 0x44], eax
mov al, byte [edx + 8]
mov byte [ebx + 0x11f], al
mov ecx, dword [edx + 0x3c]
mov dword [ebx + 0x98], ecx
mov eax, dword [edx + 0x6c]
test eax, eax
je 0x54b200
mov ecx, dword [ebx + 0x128]
test ch, 1
jne 0x54b200
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x2c0
add eax, 0xc000002e
mov esp, ebp
pop ebp
ret
cmp eax, 3
ja case.default.0x54b209
jmp dword [eax*4 + 0x54caac]
mov byte [ebx + 0x121], 0
jmp 0x54b229
mov byte [ebx + 0x121], 0x27
jmp 0x54b229
mov byte [ebx + 0x121], 0x22
mov eax, dword [edx + 0x70]
test eax, eax
je 0x54b25b
mov ecx, dword [ebx + 0x128]
test ch, 1
jne 0x54b25b
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x2c2
add eax, 0xc000002e
mov esp, ebp
pop ebp
ret
sub eax, 0
je 0x54b296
dec eax
je 0x54b286
dec eax
je 0x54b296
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x2c1
add eax, 0xc0000030
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
and al, 0x7f
mov dword [ebx + 0x12c], eax
jmp 0x54b2b0
mov eax, dword [ebx + 0x12c]
mov ecx, eax
and al, 0x7f
shr ecx, 1
and ecx, 0x80
or ecx, eax
mov dword [ebx + 0x12c], ecx
mov eax, dword [edx + 0x74]
test eax, eax
je 0x54b2f5
jle 0x54b2d5
cmp eax, 3
jg 0x54b2d5
mov eax, dword [ebx + 0x128]
test ah, 0x30
je 0x54b2f5
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x2bc
add eax, 0xc0000030
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x8c]
cmp eax, 5
ja case.default.0x54b309
mov ecx, 0xfffffffb
jmp dword [eax*4 + 0x54cabc]
mov eax, dword [edx + 0x50]
test eax, eax
jne 0x54b327
test dword [ebx + 0x12c], 0x8000000
je 0x54b3c4
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x130]
or ecx, 4
or al, 1
mov dword [ebx + 0x128], ecx
jmp 0x54b3dc
mov ecx, dword [ebx + 0x130]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebx + 0x128]
and ecx, 0xfffffff1
or al, 2
or edi, 4
or ecx, 1
mov dword [ebp - 0x10], eax
mov dword [ebx + 0x128], edi
mov dword [ebx + 0x130], ecx
jmp 0x54b3e2
mov eax, dword [ebp - 0x10]
mov edi, dword [ebx + 0x128]
and al, 0xfe
and edi, ecx
or al, 2
mov dword [ebx + 0x128], edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x130]
and al, 0xf2
or al, 2
jmp 0x54b3dc
mov edi, dword [ebx + 0x128]
mov eax, dword [ebp - 0x10]
and edi, ecx
mov ecx, dword [ebx + 0x130]
and ecx, 0xfffffff4
and al, 0xfc
or ecx, 4
mov dword [ebp - 0x10], eax
mov dword [ebx + 0x128], edi
mov dword [ebx + 0x130], ecx
jmp 0x54b3e2
mov eax, dword [ebp - 0x10]
and al, 0xfd
mov dword [ebp - 0x10], eax
mov edi, dword [ebx + 0x128]
mov eax, dword [ebx + 0x130]
and edi, ecx
and al, 0xf8
mov dword [ebx + 0x128], edi
or al, 8
mov dword [ebx + 0x130], eax
mov eax, dword [ebx + 0x128]
test ah, 1
je 0x54b42d
test ah, 0xc
jne 0x54b41e
test ah, 0x10
je 0x54b406
mov dword [ebx + 0x100], 2
jmp 0x54b4c4
test ah, 0x20
je 0x54b4c4
mov dword [ebx + 0x100], 8
jmp 0x54b4c4
mov dword [ebx + 0x100], 3
jmp 0x54b4c4
test ah, 2
jne 0x54b47b
mov ecx, dword [ebx + 0x12c]
test ecx, 0x20000000
jne 0x54b47b
test ecx, 0x40000000
je 0x54b4c4
test ah, 0xc
jne 0x54b46f
test ah, 0x10
je 0x54b45e
mov dword [ebx + 0x100], 4
jmp 0x54b4c4
test ah, 0x20
je 0x54b4c4
mov dword [ebx + 0x100], 0xa
jmp 0x54b4c4
mov dword [ebx + 0x100], 5
jmp 0x54b4c4
test ah, 0xc
jne 0x54b4a2
test ah, 0x10
je 0x54b491
mov dword [ebx + 0x100], 6
jmp 0x54b4c4
test ah, 0x20
je 0x54b4c4
mov dword [ebx + 0x100], 9
jmp 0x54b4c4
test dword [ebx + 0x12c], 0x20000000
je 0x54b4ba
mov dword [ebx + 0x100], 7
jmp 0x54b4c4
mov dword [ebx + 0x100], 0xb
mov eax, dword [edx + 0x80]
test eax, eax
mov eax, dword [0x5a3d24]
je 0x54b4e3
test eax, eax
jne 0x54b4e3
pop edi
pop esi
mov eax, 0xc0000232
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0x90]
test ecx, ecx
je 0x54b508
test eax, eax
jne 0x54b4fd
pop edi
pop esi
mov eax, 0xc0000234
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edx + 0x94]
mov dword [ebp - 0x18], esi
jmp 0x54b50b
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x54b561
lea ecx, [ebp - 0x150]
push 0x58864c
push ecx
call fcn.00563730
add esp, 8
test eax, eax
jne 0x54b561
mov edx, dword [0x588654]
lea edi, [ebp - 0x150]
or ecx, 0xffffffff
mov dword [ebp - 0x150], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x18]
mov word [ebx + 0x11a], 3
mov ecx, dword [ebp + 8]
mov edi, 0xfffeffff
mov eax, dword [ecx + 0x98]
sub eax, 0
je 0x54b586
dec eax
je 0x54b5be
dec eax
je 0x54b591
pop edi
pop esi
mov eax, 0xc0000030
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x130]
test ah, 0x80
je 0x54b5c4
mov eax, dword [ebx + 0x128]
test ah, 0x10
jne 0x54b5be
lea edx, [ebp - 0x150]
push edx
push ebx
call fcn.00537240
add esp, 8
cmp eax, 0xffffffff
jne 0x54b5be
mov eax, dword [ebx + 0x130]
or eax, 0x10000
jmp 0x54b5c6
mov eax, dword [ebx + 0x130]
and eax, edi
push str.FORT_BUFFERED
mov dword [ebx + 0x130], eax
call fcn.005520e0
add esp, 4
test eax, eax
je 0x54b60c
mov eax, dword [ebx + 0x128]
test ah, 0x10
jne 0x54b5fe
cmp dword [ebx + 0x100], 1
je 0x54b5fe
mov eax, dword [ebx + 0x130]
or eax, 0x10000
jmp 0x54b606
mov eax, dword [ebx + 0x130]
and eax, edi
mov dword [ebx + 0x130], eax
lea eax, [ebp - 0x150]
push eax
push ebx
call fcn.00537240
mov ecx, eax
add esp, 8
cmp ecx, 0xffffffff
mov dword [ebp - 0x30], ecx
je 0x54b688
mov eax, dword [ebx + 0x100]
sub eax, 3
je 0x54b65d
sub eax, 2
je 0x54b667
mov eax, dword [ebx + 0x12c]
test eax, 0x8000000
je 0x54b688
and eax, 0x10000000
pop edi
neg eax
sbb eax, eax
pop esi
and eax, 0x1f6
pop ebx
add eax, 0xc0000033
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x100], 1
test dword [ebx + 0x12c], 0x8000000
je 0x54b688
mov eax, dword [ebx + 0x128]
mov dword [ebp - 8], 3
or al, 8
mov dword [ebx + 0x128], eax
mov eax, dword [0x5a3d24]
test eax, eax
jne 0x54b6a3
cmp ecx, 0xfffffffa
jne 0x54b6e0
mov ecx, 1
mov dword [ebp - 0x30], ecx
jmp 0x54b7b8
cmp ecx, 0xfffffffa
je 0x54b6e0
cmp ecx, 1
je 0x54b6bd
test esi, esi
je 0x54b6bd
pop edi
pop esi
mov eax, 0xc0000234
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0xfffffffa
je 0x54b6e0
cmp ecx, 1
je 0x54b6e0
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x80]
test edx, edx
je 0x54b6e3
pop edi
pop esi
mov eax, 0xc0000232
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
cmp ecx, 0xfffffffc
jne 0x54b7b4
cmp word [ebx + 0x11a], 4
jge 0x54b721
mov ecx, dword [ebx + 0x50]
lea edi, [ebx + 0x50]
push ecx
call fcn.0053f120
add esp, 4
test eax, eax
jne 0x54c9da
push edi
push eax
push 5
call fcn.0053f0b0
add esp, 0xc
test eax, eax
jne 0x54c9da
mov al, byte [0x58866c]
mov edx, dword [0x588668]
mov byte [ebp - 0x14c], al
lea edi, [ebp - 0x150]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x150], edx
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 esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp + 8]
mov word [ebx + 0x11a], 4
mov eax, dword [0x5a3d24]
test eax, eax
je 0x54b8d6
cmp ecx, 0xfffffffa
jne 0x54b8d6
mov edx, dword [ebx + 0x130]
mov dword [ebp - 0x28], 0
or edx, 0x40
mov dword [ebx + 0x130], edx
mov ecx, dword [edi + 0x80]
test ecx, ecx
mov eax, edx
je 0x54b7f3
mov ecx, dword [edi + 0x84]
test ecx, ecx
jne 0x54b7f3
and al, 0x7f
jmp 0x54b7f5
test ecx, ecx
jl 0x54b76e
cmp dword [ebx + 0x100], 1
jne 0x54b8d6
cmp ecx, 1
je 0x54b7d7
cmp ecx, 2
je 0x54b7d7
test ecx, ecx
jne 0x54b8d6
mov ecx, dword [ebx + 0x130]
and eax, 1
shl eax, 6
and ecx, 0xffffffbf
or eax, ecx
mov dword [ebx + 0x130], eax
jmp 0x54b8d6
or al, 0x80
test esi, esi
mov dword [ebx + 0x130], eax
jne 0x54b804
mov esi, 0x100
lea edx, [ebp - 0x2c]
lea eax, [esi + 1]
push edx
push 0
push eax
call fcn.0053f0b0
add esp, 0xc
test eax, eax
jne 0x54c9da
mov eax, dword [edi + 0x94]
test eax, eax
jne 0x54b842
mov ecx, dword [ebx + 0xbc]
mov edx, dword [ebp - 0x2c]
push ecx
push str.Unit__i
push edx
call fcn.00563888
add esp, 0xc
jmp 0x54b85d
mov eax, dword [edi + 0x90]
mov ecx, dword [ebp - 0x2c]
push esi
push eax
push ecx
call fcn.00563960
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov byte [edx + esi], 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0056edf0
add esp, 4
cmp eax, 0xffffffff
mov dword [ebx + 0xa8], eax
jne 0x54b894
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x24f
add eax, 0xc0000009
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x130], 0x80
je 0x54b8c2
push eax
call fcn.0056edf0
mov ecx, dword [ebx + 0xa8]
push ecx
call fcn.0056edf0
add esp, 8
test eax, eax
jne 0x54b8c2
pop edi
pop esi
mov eax, 0xc000028e
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0053f120
add esp, 4
test eax, eax
jne 0x54c9da
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
je 0x54b976
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x54b953
mov ecx, dword [ebx + 0xbc]
lea edi, [ebp - 0x150]
mov dword [ebp - 0x34], ecx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 0x128]
mov dword [ebp - 0x18], 0
not ecx
dec ecx
or eax, 0x20000
mov dword [ebx + 0x128], eax
mov eax, dword [edx + 0x64]
push ecx
lea ecx, [ebp - 0x34]
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 - 0x150]
push ecx
push edx
call eax
add esp, 0x24
jmp 0x54b970
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 - 0x150]
push eax
push ecx
call esi
mov dword [ebx + 0xa8], eax
mov eax, dword [ebx + 0xa8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x54ba73
mov eax, dword [ebx + 0x128]
test eax, 0x400000
jne 0x54ba73
test al, 2
jne 0x54ba73
test byte [ebx + 0x12c], 0x40
jne 0x54ba73
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x54ba73
call edi
cmp eax, 5
je 0x54b9d8
cmp eax, 0x13
je 0x54b9d8
test dword [ebx + 0x12c], 0x8000000
je 0x54ba73
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 - 0x150]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebx + 0xa8], eax
jne 0x54ba53
test dword [ebx + 0x12c], 0x8000000
je 0x54ba53
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 - 0x150]
push eax
push edx
mov dword [ebp - 0x14], eax
call esi
mov dword [ebx + 0xa8], eax
mov eax, dword [ebx + 0x12c]
or al, 0x40
jmp 0x54ba6d
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x12c]
or ecx, 2
or eax, 0x400000
mov dword [ebx + 0x128], ecx
mov dword [ebx + 0x12c], eax
mov ecx, dword [ebx + 0xa8]
cmp ecx, 0xffffffff
jne 0x54bb1a
call edi
lea esi, [eax - 2]
cmp esi, 0xcc
ja case.0x54ba9b.8
xor ecx, ecx
mov cl, byte [esi + 0x54caf0]
jmp dword [ecx*4 + 0x54cad4]
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x23d
add eax, 0xc000001d
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc000002b
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x24f
add eax, 0xc000000a
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc000002a
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x23d
add eax, 0xc000001e
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5a3d24]
test eax, eax
je 0x54bb40
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x54bb39
test eax, eax
je 0x54bb39
cmp eax, 2
je 0x54bb39
cmp eax, 0xfffffffa
jne 0x54bb40
mov eax, 2
jmp 0x54bb47
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov cl, byte [ebx + 0x11e]
test cl, cl
jne 0x54bc1e
cmp byte [ebx + 0x11c], 1
jne 0x54bb8a
test dword [ebx + 0x12c], 0x8000000
je 0x54bb7e
mov ecx, dword [ebx + 0x128]
test ch, 0x10
je 0x54bb7e
test ch, 1
jne 0x54bc17
mov byte [ebx + 0x11e], 3
jmp 0x54bc1e
mov ecx, dword [ebx + 0x130]
test ecx, 0x600000
je 0x54bbc8
mov edx, dword [ebx + 0xbc]
cmp edx, 6
je 0x54bbad
cmp edx, 0xffffffff
je 0x54bbad
cmp edx, 0xfffffffe
jne 0x54bbc8
shr ecx, 0x15
and ecx, 3
dec ecx
je 0x54bbed
dec ecx
je 0x54bc17
dec ecx
je 0x54bb7e
pop edi
pop esi
mov eax, 0xc0000030
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebx + 0x12c], 0x8000000
je 0x54bbf6
cmp dword [ebx + 0x100], 1
je 0x54bbed
mov ecx, dword [ebx + 0x128]
test ch, 1
je 0x54bc17
cmp eax, 2
jne 0x54bc17
mov byte [ebx + 0x11e], 1
jmp 0x54bc1e
mov ecx, dword [ebx + 0x128]
test ch, 1
je 0x54bc17
cmp eax, 2
jne 0x54bc17
test ecx, 0x400000
je 0x54bc17
mov byte [ebx + 0x11e], 1
jmp 0x54bc1e
mov byte [ebx + 0x11e], 2
mov cl, byte [ebx + 0x11e]
cmp cl, 3
je 0x54bc38
cmp byte [ebx + 0x11c], 1
je 0x54bc38
inc dword [ebx + 0xb4]
cmp cl, 1
jne 0x54bc4d
cmp byte [ebx + 0x11c], 1
je 0x54bc4d
add dword [ebx + 0xb4], 5
mov ecx, dword [ebx + 0x128]
test ecx, 0x400000
je 0x54bc6f
test ch, 0x10
je 0x54bc6f
cmp byte [ebx + 0x11d], 2
jne 0x54bc6f
inc dword [ebx + 0xb4]
test dword [ebx + 0x12c], 0x8000000
je 0x54bc8c
test ch, 0x10
je 0x54bc8c
test ch, 1
je 0x54bc8c
add dword [ebx + 0xb4], 2
cmp eax, 1
jne 0x54bc99
or ecx, 0x800000
jmp 0x54bc9f
and ecx, 0xff7fffff
mov eax, ecx
mov dword [ebx + 0x128], ecx
test ah, 1
mov esi, 0xfff7ffff
je 0x54bd73
push ebx
call fcn.005549d0
add esp, 4
test eax, eax
jne 0x54c9da
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x54bd73
xor ecx, ecx
mov cl, byte [eax + 0x1e]
test ecx, ecx
je 0x54bd73
mov edi, dword [eax + 0xc]
test byte [edi + 0x12c], 4
je 0x54bd1b
cmp byte [edi + 0x11e], 1
jne 0x54bd1b
mov eax, dword [edi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x54bd04
mov byte [eax + 5], 0x24
jmp 0x54bd0d
cmp cl, 0x2b
jne 0x54bd0d
mov byte [eax + 5], 0
mov eax, dword [edi + 0x12c]
and al, 0xfb
mov dword [edi + 0x12c], eax
push edi
call fcn.0054f090
mov ecx, dword [ebx + 0x7c]
add esp, 4
test ecx, ecx
je 0x54bd2f
mov byte [ecx + 0x1e], 0
test eax, eax
je 0x54bd47
push edi
push eax
push eax
push 1
call fcn.00546a20
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x90]
mov eax, dword [edi + 0x12c]
add edx, 1
mov dword [edi + 0x90], edx
mov ecx, dword [edi + 0x94]
adc ecx, 0
and eax, esi
mov dword [edi + 0x94], ecx
mov dword [edi + 0x12c], eax
mov eax, dword [ebx + 0x128]
test ah, 0x10
je 0x54bd91
test eax, 0x800000
jne 0x54bd91
pop edi
pop esi
mov eax, 0xc0000033
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
test eax, eax
je case.default.0x54bdf7
mov edx, dword [ebp + 8]
cmp dword [edx + 0x54], 5
jne 0x54bde8
mov eax, dword [ebx + 0xa8]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x54bdc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xac], eax
mov edi, 0xc0000026
mov ecx, dword [ebx + 0x128]
and ecx, 0x7fffffff
test edi, edi
mov dword [ebx + 0x128], ecx
je 0x54bde8
mov eax, edi
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.0x54bdf7
jmp dword [eax*4 + 0x54cbc0]
or dword [ebx + 0x12c], 0x80000
jmp case.default.0x54bdf7
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x12c]
and ch, 0xfb
and eax, esi
mov dword [ebx + 0x90], 1
mov dword [ebx + 0x128], ecx
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x12c], eax
jmp case.default.0x54bdf7
mov eax, dword [ecx + 0x54]
mov edi, 5
cmp eax, edi
jne 0x54be76
mov eax, dword [ebx + 0x12c]
mov dword [ebx + 0x90], 0x80000000
and eax, esi
mov dword [ebx + 0x94], 0xffffffff
mov dword [ebx + 0x12c], eax
jmp case.default.0x54bdf7
test dword [ebx + 0x128], 0x800000
je case.default.0x54bdf7
mov ecx, dword [ebx + 0xa8]
mov esi, 2
push esi
push 0
push 0
push ecx
call fcn.00555710
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x54bed5
mov edx, dword [ebx + 0xa8]
push edx
call fcn.0054cbf0
add esp, 4
or eax, edx
je case.default.0x54bdf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [ebx + 0xac], eax
pop esi
mov eax, 0xc0000078
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x12c]
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x100]
and edx, 0xfff7ffff
and ch, 0xfb
mov dword [ebx + 0x90], 0x80000000
cmp eax, edi
mov dword [ebx + 0x94], 0xffffffff
mov dword [ebx + 0x12c], edx
mov dword [ebx + 0x128], ecx
je case.default.0x54bdf7
mov al, byte [ebx + 0x11c]
movsx ecx, al
dec ecx
cmp ecx, 6
ja case.default.0x54bf2b
jmp dword [ecx*4 + 0x54cbd0]
mov eax, dword [ebx + 0xa8]
push eax
call fcn.0054cbf0
mov ecx, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff7
push ecx
mov edi, eax
mov esi, edx
call fcn.00555710
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x54c5ec
sub edi, eax
sbb esi, edx
cmp edi, 9
jne 0x54c5ec
test esi, esi
jne 0x54c5ec
test byte [ebx + 0x12c], 0x40
je 0x54c00f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x54c00f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push esi
push eax
push ecx
push esi
push 3
lea edx, [ebp - 0x150]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x54bfcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xac], eax
pop edi
pop esi
mov eax, 0xc000001e
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff7
push edi
call fcn.00555710
add esp, 0x10
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x24]
push 0
push eax
push 9
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 0xa8]
push 2
push 0
push 0
push edx
call fcn.00555710
add esp, 0x10
jmp 0x54c02a
mov edx, dword [ebx + 0xa8]
lea eax, [ebp + 0xc]
push 0
push eax
lea ecx, [ebp - 0x24]
push 9
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x54bfb5
cmp dword [ebp + 0xc], 9
je 0x54c046
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x54c5f9
test byte [ebx + 0x12c], 2
je 0x54c083
mov eax, dword [ebp - 0x1f]
mov ecx, dword [ebp - 0x1e]
mov edx, dword [ebp - 0x1d]
and eax, 0xff
shl eax, 8
and ecx, 0xff
and edx, 0xff
or eax, ecx
mov ecx, dword [ebp - 0x1c]
shl eax, 8
or eax, edx
and ecx, 0xff
shl eax, 8
or eax, ecx
jmp 0x54c0b5
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1d]
mov ecx, dword [ebp - 0x1e]
and eax, 0xff
shl eax, 8
and edx, 0xff
and ecx, 0xff
or eax, edx
mov edx, dword [ebp - 0x1f]
shl eax, 8
or eax, ecx
and edx, 0xff
shl eax, 8
or eax, edx
cmp eax, 1
jne case.default.0x54bdf7
cmp byte [ebp - 0x20], 0x1a
jne case.default.0x54bdf7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff7
jmp 0x54c5d1
cmp al, 7
mov dword [ebp - 0xc], 3
jne 0x54c0e7
cmp byte [ebx + 0x11e], 3
je 0x54c100
cmp al, 5
jne 0x54c103
mov al, byte [ebx + 0x11e]
cmp al, 3
jne 0x54c0fc
mov dword [ebp - 0xc], 1
cmp al, 2
jne 0x54c103
mov dword [ebp - 0xc], esi
mov edx, dword [ebx + 0xa8]
push edx
call fcn.0054cbf0
mov edi, eax
mov eax, dword [ebp - 0xc]
neg eax
mov esi, edx
push 1
cdq
push edx
mov dword [ebp - 0x38], eax
push eax
mov eax, dword [ebx + 0xa8]
push eax
mov dword [ebp - 0x34], edx
call fcn.00555710
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x54c5ec
mov ecx, dword [ebp - 0xc]
sub edi, eax
sbb esi, edx
xor eax, eax
cmp edi, ecx
jne 0x54c5ec
cmp esi, eax
jne 0x54c5ec
test byte [ebx + 0x12c], 0x40
je 0x54c22d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x54c22d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push 0
push eax
push ecx
push 0
push 3
lea edx, [ebp - 0x150]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x54c1e5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x20
mov dword [ebx + 0xac], eax
jne 0x54bfc1
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
call fcn.00555710
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x54c60c
call esi
pop edi
mov dword [ebx + 0xac], eax
pop esi
mov eax, 0xc0000078
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
push 2
push ecx
push edx
push esi
call fcn.00555710
mov ecx, dword [ebp - 0xc]
add esp, 0x10
lea eax, [ebp + 0xc]
lea edx, [ebp - 0x24]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
call fcn.00555710
add esp, 0x10
jmp 0x54c24a
mov edx, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push 0
push ecx
mov ecx, dword [ebx + 0xa8]
lea eax, [ebp - 0x24]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x54bfb5
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
cmp edx, eax
je 0x54c26e
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x54c5f9
cmp byte [ebp - 0x24], 0x1a
jne case.default.0x54bdf7
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
push 1
push ecx
push edx
jmp 0x54c5d1
mov edx, dword [ebx + 0xa8]
push edx
call fcn.0054cbf0
mov edi, eax
mov eax, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push eax
mov esi, edx
call fcn.00555710
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x54c034
sub edi, eax
sbb esi, edx
cmp edi, 4
jne 0x54c034
test esi, esi
jne 0x54c034
test byte [ebx + 0x12c], 0x40
je 0x54c34b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x54c34b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push esi
push eax
push ecx
push esi
push 3
lea edx, [ebp - 0x150]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x54bfb5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push edi
call fcn.00555710
add esp, 0x10
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x24]
push esi
push eax
push 4
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 0xa8]
push 2
push 0
push 0
push edx
call fcn.00555710
add esp, 0x10
jmp 0x54c366
mov edx, dword [ebx + 0xa8]
lea eax, [ebp + 0xc]
push 0
push eax
lea ecx, [ebp - 0x24]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x54bfb5
cmp dword [ebp + 0xc], 4
je 0x54c386
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x54c5f9
xor ecx, ecx
mov ch, byte [ebp - 0x23]
mov cl, byte [ebp - 0x24]
cmp cx, 1
jne case.default.0x54bdf7
cmp byte [ebp - 0x22], 0x1a
jne case.default.0x54bdf7
mov edx, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push edx
jmp 0x54c5d8
mov ecx, dword [ebx + 0xa8]
mov dword [ebp - 0xc], 1
push ecx
call fcn.0054cbf0
mov esi, edx
mov edx, dword [ebx + 0xb4]
mov edi, eax
mov ecx, dword [ebx + 0xa8]
xor eax, eax
push 1
neg edx
adc eax, eax
neg eax
push eax
push edx
push ecx
call fcn.00555710
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x54c5ec
mov ecx, dword [ebx + 0xb4]
sub edi, eax
sbb esi, edx
xor eax, eax
cmp edi, ecx
jne 0x54c5ec
cmp esi, eax
jne 0x54c5ec
lea edx, [ebp - 0x18]
push edx
push eax
push ecx
call fcn.0053f0b0
add esp, 0xc
test eax, eax
jne 0x54c9da
test byte [ebx + 0x12c], 0x40
je 0x54c4c0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x54c4c0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push 0
push ecx
push edx
push 0
push 3
lea eax, [ebp - 0x150]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x54bfb5
mov ecx, dword [ebx + 0xb4]
xor edx, edx
neg ecx
adc edx, edx
push 2
neg edx
push edx
push ecx
push esi
call fcn.00555710
mov ecx, dword [ebx + 0xb4]
mov edx, dword [ebp - 0x18]
add esp, 0x10
lea eax, [ebp + 0xc]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
call fcn.00555710
add esp, 0x10
jmp 0x54c4e0
mov edx, dword [ebx + 0xb4]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp + 0xc]
push 0
push ecx
mov ecx, dword [ebx + 0xa8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x54bfb5
mov edx, dword [ebx + 0xb4]
mov eax, dword [ebp + 0xc]
cmp eax, edx
je 0x54c567
mov edx, dword [ebx + 0xa8]
push 2
push 0
push 0
push edx
call fcn.00555710
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54bebd
mov eax, dword [ebx + 0x12c]
mov edi, dword [ebx + 0x128]
and eax, 0xfff7ffff
and edi, 0xfffffbff
mov dword [ebx + 0x12c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x90], 0x80000000
push eax
mov dword [ebx + 0x94], 0xffffffff
mov dword [ebx + 0x128], edi
call fcn.0053f120
add esp, 4
test eax, eax
je case.default.0x54bdf7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x128]
test ah, 2
jne 0x54c582
test dword [ebx + 0x12c], 0x60000000
jne 0x54c582
mov cl, 0x20
jmp 0x54c584
xor cl, cl
mov edi, dword [ebp - 0x18]
cmp byte [edi], 0x1a
je 0x54c590
xor esi, esi
jmp 0x54c5a6
lea eax, [edi + 1]
lea esi, [edx + edi]
cmp eax, esi
jae 0x54c5a3
cmp byte [eax], cl
jne 0x54c58c
inc eax
cmp eax, esi
jb 0x54c59a
mov esi, dword [ebp - 0xc]
push edi
call fcn.0053f120
add esp, 4
test eax, eax
jne 0x54c9da
test esi, esi
je case.default.0x54bdf7
mov ecx, dword [ebx + 0xb4]
xor edx, edx
neg ecx
adc edx, edx
push 1
neg edx
push edx
push ecx
mov eax, dword [ebx + 0xa8]
push eax
call fcn.00555710
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne case.default.0x54bdf7
jmp 0x54bfb5
mov ecx, dword [ebx + 0xa8]
push 2
push 0
push 0
push ecx
call fcn.00555710
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54bebd
mov ecx, dword [ebx + 0x12c]
mov eax, dword [ebx + 0x128]
and ecx, 0xfff7ffff
and ah, 0xfb
mov dword [ebx + 0x90], 0x80000000
mov dword [ebx + 0x94], 0xffffffff
mov dword [ebx + 0x12c], ecx
mov dword [ebx + 0x128], eax
jmp case.default.0x54bdf7
push 0xc77
push 0x588678
push esi
push 0xc0000008
call fcn.005469f0
add esp, 0x10
mov eax, dword [ebx + 0x128]
test ah, 4
je 0x54c6db
test eax, 0x800000
je 0x54c6db
mov edx, dword [ebx + 0xa8]
push 2
push 0
push 0
push edx
call fcn.00555710
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54bebd
cmp dword [ebx + 0x100], 7
jne 0x54c6b6
mov eax, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.00555710
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54bebd
mov eax, dword [ebx + 0x12c]
mov dword [ebx + 0x90], 0x80000000
and eax, 0xfff7ffff
mov dword [ebx + 0x94], 0xffffffff
mov dword [ebx + 0x12c], eax
mov eax, dword [ebx + 0x128]
test ah, 4
jne 0x54c70e
test eax, 0x800000
je 0x54c70e
mov edx, dword [ebx + 0x12c]
mov ecx, 0x8000000
test ecx, edx
je 0x54c701
test ah, 0x10
jne 0x54c713
or eax, 0x80000000
mov dword [ebx + 0x128], eax
jmp 0x54c713
mov ecx, 0x8000000
mov eax, dword [ebx + 0x128]
test ah, 0x80
jne 0x54c72e
mov dx, word [ebx + 0xb4]
mov word [ebx + 0x118], dx
jmp 0x54c781
mov al, byte [ebx + 0x11e]
cmp al, 1
mov eax, dword [ebx + 0x12c]
jne 0x54c769
test ecx, eax
je 0x54c74d
mov word [ebx + 0x118], 0x50
jmp 0x54c756
mov word [ebx + 0x118], 0x51
cmp byte [ebx + 0x11c], 1
je 0x54c781
add word [ebx + 0x118], 4
jmp 0x54c781
test ecx, eax
je 0x54c778
mov word [ebx + 0x118], 0x4f
jmp 0x54c781
mov word [ebx + 0x118], 0x50
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x54c792
mov dword [esi + 0x14], 1
test dword [ebx + 0x12c], ecx
je 0x54c7a9
mov edx, dword [esi + 0x10]
mov eax, 0x7ffffe00
cmp edx, eax
jle 0x54c7a9
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x54c7c8
mov eax, dword [ebx + 0x12c]
and eax, ecx
neg eax
sbb eax, eax
and eax, 0xffffe400
add eax, 0x2000
jmp 0x54c7dc
add eax, 0x1ff
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
shl eax, 9
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
imul eax, dword [esi + 0x10]
mov ecx, dword [ebx + 0xb4]
cmp ecx, eax
jbe 0x54c7f2
mov eax, ecx
mov dword [ebx + 0xb0], eax
mov eax, dword [ebx + 0x128]
mov ecx, dword [esi + 0x10]
test ah, 1
mov dword [ebx + 0x104], ecx
je 0x54c83f
lea edx, [ebp + 8]
push edx
push 0
push 0x54
call fcn.0053f0b0
add esp, 0xc
test eax, eax
je 0x54c834
push ebx
push eax
push eax
push 1
call fcn.00546a20
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 + 0x128]
test ah, 2
jne 0x54c856
test dword [ebx + 0x12c], 0x60000000
je 0x54c868
push esi
push ebx
call fcn.00536c60
add esp, 8
test eax, eax
jne 0x54c9da
mov eax, dword [ebx + 0xb0]
lea esi, [ebx + 0x28]
push esi
push 0
push eax
call fcn.0053f0b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x54c88a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, dword [ebx + 0xb4]
mov dword [ebx + 0x2c], eax
add eax, ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x108], ecx
test eax, eax
je 0x54c8d4
cmp dword [ebx + 0x100], 7
jne 0x54c8d4
mov edx, dword [ebx + 0xa8]
push edx
call fcn.0054cbf0
add esp, 4
or eax, edx
jne 0x54c8d4
mov eax, dword [ebx + 0x130]
or al, 0x20
mov dword [ebx + 0x130], eax
mov ecx, dword [ebx + 0x128]
mov eax, 1
or ecx, eax
mov dword [ebx + 0x128], ecx
mov dword [0x5a0358], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x20f
add eax, 0xc0000030
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x2bf
add eax, 0xc0000030
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc0000025
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x20e
add eax, 0xc0000030
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x20a
add eax, 0xc0000030
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x20c
add eax, 0xc0000030
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
pop edi
and eax, 0x10000000
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x20b
add eax, 0xc0000030
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x12c]
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