Function at 0x54b840
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 0x54b891
cmp dword [eax + 0x7c], esi
jne 0x54b891
cmp dword [eax + 0x2c], esi
jne 0x54b891
cmp dword [eax + 0x54], esi
jne 0x54b891
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.0054dc90
add esp, 0x10
cmp eax, esi
jne 0x54da2a
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.00540120
add esp, 0xc
cmp eax, esi
jne 0x54da2a
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 0x54b948
xor edx, edx
mov dword [ebx + 0x90], 1
mov dword [ebx + 0x94], edx
jmp 0x54b94a
xor edx, edx
mov ecx, dword [ebp + 8]
mov edi, 2
cmp dword [ecx + 0x44], edx
je 0x54b98c
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 0x54b99f
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.0x54b9b0
mov esi, 0x40
jmp dword [ecx*4 + 0x54da34]
test byte [ebx + 0x128], 2
je 0x54b9cc
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.0x54b9b0.0
jmp 0x54ba49
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 0x54ba46
test byte [ebx + 0x128], 2
je 0x54ba25
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.0x54ba5e
jmp dword [ecx*4 + 0x54da44]
test byte [ebx + 0x128], 2
je 0x54ba7a
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.0x54ba5e.0
jmp 0x54baff
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 0x54bafc
test byte [ebx + 0x128], 2
je 0x54bad8
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.0x54bb10
jmp dword [eax*4 + 0x54da54]
mov eax, dword [ebx + 0x128]
or ah, 8
jmp 0x54bb51
mov eax, dword [ebx + 0x128]
or ah, 0x10
jmp 0x54bb51
mov eax, dword [ebx + 0x128]
or ah, 0x20
jmp 0x54bb51
mov eax, dword [ebx + 0x128]
test al, 2
je 0x54bb4e
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.0x54bb63
jmp dword [eax*4 + 0x54da68]
test dword [ebx + 0x12c], 0x8000000
je case.0x54bb63.4
lea edx, [ebp - 0x150]
push 0x589618
push edx
call fcn.00564780
add esp, 8
test eax, eax
jne case.0x54bb63.4
mov eax, dword [ebx + 0x128]
or al, 0x20
mov dword [ebx + 0x128], eax
mov eax, dword [ebx + 0x128]
test al, 2
je 0x54bbb2
test dword [ebx + 0x12c], 0x8000000
je 0x54bbc2
test dword [ebx + 0x12c], 0x400000
je 0x54bc7c
or al, 8
mov dword [ebx + 0x128], eax
mov eax, dword [ebp - 8]
or al, 3
jmp 0x54bc81
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebp - 8]
or ecx, 8
or al, 3
mov dword [ebx + 0x128], ecx
jmp 0x54bc81
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x54b9c0
test ah, 4
je 0x54bc10
test dword [ebx + 0x12c], 0x8000000
je 0x54b9c0
mov eax, dword [ebp - 8]
or al, 1
jmp 0x54bc81
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x54b9c0
test ah, 4
je 0x54bc3a
test dword [ebx + 0x12c], 0x8000000
je 0x54b9c0
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 0x54bc84
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x54b9c0
test ah, 4
je 0x54bc7c
test dword [ebx + 0x12c], 0x8000000
je 0x54b9c0
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.0x54be7b
jmp dword [eax*4 + 0x54da80]
test byte [ebx + 0x128], 0x10
je case.0x54bc93.0
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x128], 0x10
je case.0x54bc93.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 0x54bcda
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 0x54bcee
or al, 0x40
jmp 0x54bcf5
cmp ecx, 6
jne case.0x54bc93.0
or al, 0x80
mov dword [ebx + 0x128], eax
mov eax, dword [edx + 0x34]
cmp eax, 4
ja case.default.0x54bd11
mov esi, 0x200
mov ecx, 0x20000000
jmp dword [eax*4 + 0x54da9c]
mov eax, dword [ebx + 0x128]
test ah, 0x30
jne 0x54bd5d
or ah, 1
mov dword [ebx + 0x128], eax
jmp 0x54bdb2
mov eax, dword [ebx + 0x128]
test al, 0x10
je 0x54bcea
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x128]
test al, 0x10
je 0x54bcf3
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebx + 0x130], 0x2000
jne 0x54bd97
or eax, esi
mov dword [ebx + 0x128], eax
jmp 0x54bdb2
mov eax, dword [ebx + 0x128]
or ah, 1
mov dword [ebx + 0x128], eax
jmp 0x54bdb2
mov eax, dword [ebx + 0x130]
test ah, 0x20
jne 0x54bd97
or dword [ebx + 0x128], esi
jmp 0x54bdb2
mov eax, dword [ebx + 0x12c]
or eax, ecx
jmp 0x54bdac
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.0x54be7b
jmp dword [eax*4 + 0x54dab0]
mov eax, dword [ebx + 0x128]
test ah, 0x31
je case.0x54bdc7.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 0x54be23
jle 0x54be03
cmp eax, 3
jle 0x54be6f
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 0x54be4a
mov eax, dword [ebx + 0x128]
test ah, 0x10
je 0x54be4a
test ah, 1
je 0x54be4a
mov byte [ebx + 0x11e], 2
jmp 0x54be6f
mov al, byte [ebx + 0x11c]
cmp al, 1
je 0x54be68
cmp al, 4
je 0x54be68
test dword [ebx + 0x128], esi
jne 0x54be68
test ecx, 0x60000000
je 0x54be6f
mov byte [ebx + 0x11e], 3
mov eax, dword [edx + 0x40]
cmp eax, 3
ja case.default.0x54be7b
jmp dword [eax*4 + 0x54dad0]
mov ecx, dword [ebx + 0x128]
test ch, 0x20
jne 0x54befb
mov byte [ebx + 0x11d], 1
jmp 0x54bf02
mov ecx, dword [ebx + 0x128]
test ch, 0x10
je 0x54bebb
mov al, byte [ebx + 0x11c]
cmp al, 1
je 0x54bebb
test al, al
je 0x54bebb
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test ch, 0x20
je 0x54be8d
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x128]
test ch, 0x20
je 0x54bee3
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x11d], 2
jmp 0x54bf02
mov ecx, dword [ebx + 0x128]
test ch, 0x14
jne 0x54b9c0
mov byte [ebx + 0x11d], 3
mov al, byte [ebx + 0x11d]
cmp al, 2
je 0x54bf11
test ch, 0x10
je 0x54bf18
or dword [ebp - 4], 0x10000000
mov edi, dword [edx + 0x4c]
test edi, edi
jne 0x54bf6a
cmp al, 2
je 0x54bf63
cmp al, 3
je 0x54bf63
test ch, 0x30
jne 0x54bf63
test dword [ebx + 0x12c], 0x60000000
jne 0x54bf5a
test esi, ecx
je 0x54bf45
mov byte [ebx + 0x11c], 4
jmp 0x54bf6a
cmp byte [ebx + 0x11e], 3
setne dl
add edx, 5
mov byte [ebx + 0x11c], dl
jmp 0x54bf6a
mov byte [ebx + 0x11c], 5
jmp 0x54bf6a
mov byte [ebx + 0x11c], 1
cmp al, 2
je 0x54bf77
cmp al, 3
je 0x54bf77
test ch, 0x30
je 0x54bf8c
cmp byte [ebx + 0x11c], 1
je 0x54bf8c
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 0x54bfb6
test ch, 0xc
je 0x54bfb6
cmp byte [ebx + 0x11c], 5
je 0x54bfb6
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 0x11c]
cmp al, 4
jne 0x54bfd5
cmp byte [ebx + 0x11e], 3
je 0x54bfd5
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 0x54bfef
test esi, 0x8000000
je 0x54c010
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 0x54c04b
dec ecx
je 0x54c069
dec ecx
je 0x54c03a
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 0x54c069
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 0x54c14d
cmp al, 1
je 0x54c131
mov ecx, dword [ebx + 0x128]
test ch, 0x10
jne 0x54c131
test edx, edx
jne 0x54c10f
test esi, 0x40000000
jne 0x54c10f
test esi, 0x8000000
je 0x54c0c6
test ch, 1
je 0x54c0c6
mov eax, 0x400
or ch, 0x80
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0x128], ecx
jmp 0x54c1ff
test ch, 2
je 0x54c0ed
or ch, 0x80
mov dword [ebx + 0xb4], 0x800
mov dword [ebx + 0xb8], 0x1fe
mov dword [ebx + 0x128], ecx
jmp 0x54c1ff
or ch, 0x80
mov dword [ebx + 0xb4], 0x85
mov dword [ebx + 0xb8], 0x84
mov dword [ebx + 0x128], ecx
jmp 0x54c1ff
or ch, 0x80
mov dword [ebx + 0xb4], 0x400
mov dword [ebx + 0xb8], 0x10000
mov dword [ebx + 0x128], ecx
jmp 0x54c1ff
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 0x54c16b
cmp edi, 1
jl 0x54c15f
cmp edi, 0xfffffffa
jbe 0x54c16b
pop edi
pop esi
mov eax, 0xc0000245
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x54d985
mov ecx, dword [ebx + 0x128]
mov dword [ebx + 0xb8], edi
test ch, 2
je 0x54c198
test ecx, 0x1000000
jne 0x54c198
mov edx, dword [ebp + 8]
cmp dword [edx + 0x78], 0
jne 0x54c198
shl edi, 2
movsx edx, al
dec edx
cmp edx, 6
ja case.default.0x54c1a1
jmp dword [edx*4 + 0x54dae0]
add edi, 4
jmp case.0x54c1a1.1
add edi, 8
jmp case.0x54c1a1.1
test esi, 0x40000000
je case.0x54c1a1.1
or ch, 0x80
mov edi, 0x400
mov dword [ebx + 0xb8], 0x10000
mov dword [ebx + 0x128], ecx
jmp case.0x54c1a1.1
cmp byte [ebx + 0x11e], 3
jne case.0x54c1a1.1
inc edi
jmp case.0x54c1a1.1
push 0x5db
push 0x589620
push 2
push 0xc0000008
call fcn.00547a40
add esp, 0x10
mov dword [ebx + 0xb4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
test eax, eax
je 0x54c215
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 0x54c250
mov ecx, dword [ebx + 0x128]
test ch, 1
jne 0x54c250
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.0x54c259
jmp dword [eax*4 + 0x54dafc]
mov byte [ebx + 0x121], 0
jmp 0x54c279
mov byte [ebx + 0x121], 0x27
jmp 0x54c279
mov byte [ebx + 0x121], 0x22
mov eax, dword [edx + 0x70]
test eax, eax
je 0x54c2ab
mov ecx, dword [ebx + 0x128]
test ch, 1
jne 0x54c2ab
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 0x54c2e6
dec eax
je 0x54c2d6
dec eax
je 0x54c2e6
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 0x54c300
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 0x54c345
jle 0x54c325
cmp eax, 3
jg 0x54c325
mov eax, dword [ebx + 0x128]
test ah, 0x30
je 0x54c345
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.0x54c359
mov ecx, 0xfffffffb
jmp dword [eax*4 + 0x54db0c]
mov eax, dword [edx + 0x50]
test eax, eax
jne 0x54c377
test dword [ebx + 0x12c], 0x8000000
je 0x54c414
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x130]
or ecx, 4
or al, 1
mov dword [ebx + 0x128], ecx
jmp 0x54c42c
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 0x54c432
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 0x54c42c
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 0x54c432
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 0x54c47d
test ah, 0xc
jne 0x54c46e
test ah, 0x10
je 0x54c456
mov dword [ebx + 0x100], 2
jmp 0x54c514
test ah, 0x20
je 0x54c514
mov dword [ebx + 0x100], 8
jmp 0x54c514
mov dword [ebx + 0x100], 3
jmp 0x54c514
test ah, 2
jne 0x54c4cb
mov ecx, dword [ebx + 0x12c]
test ecx, 0x20000000
jne 0x54c4cb
test ecx, 0x40000000
je 0x54c514
test ah, 0xc
jne 0x54c4bf
test ah, 0x10
je 0x54c4ae
mov dword [ebx + 0x100], 4
jmp 0x54c514
test ah, 0x20
je 0x54c514
mov dword [ebx + 0x100], 0xa
jmp 0x54c514
mov dword [ebx + 0x100], 5
jmp 0x54c514
test ah, 0xc
jne 0x54c4f2
test ah, 0x10
je 0x54c4e1
mov dword [ebx + 0x100], 6
jmp 0x54c514
test ah, 0x20
je 0x54c514
mov dword [ebx + 0x100], 9
jmp 0x54c514
test dword [ebx + 0x12c], 0x20000000
je 0x54c50a
mov dword [ebx + 0x100], 7
jmp 0x54c514
mov dword [ebx + 0x100], 0xb
mov eax, dword [edx + 0x80]
test eax, eax
mov eax, dword [0x59d964]
je 0x54c533
test eax, eax
jne 0x54c533
pop edi
pop esi
mov eax, 0xc0000232
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0x90]
test ecx, ecx
je 0x54c558
test eax, eax
jne 0x54c54d
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 0x54c55b
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x54c5b1
lea ecx, [ebp - 0x150]
push 0x589644
push ecx
call fcn.00564780
add esp, 8
test eax, eax
jne 0x54c5b1
mov edx, dword [0x58964c]
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 0x54c5d6
dec eax
je 0x54c60e
dec eax
je 0x54c5e1
pop edi
pop esi
mov eax, 0xc0000030
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x130]
test ah, 0x80
je 0x54c614
mov eax, dword [ebx + 0x128]
test ah, 0x10
jne 0x54c60e
lea edx, [ebp - 0x150]
push edx
push ebx
call fcn.005382b0
add esp, 8
cmp eax, 0xffffffff
jne 0x54c60e
mov eax, dword [ebx + 0x130]
or eax, 0x10000
jmp 0x54c616
mov eax, dword [ebx + 0x130]
and eax, edi
push str.FORT_BUFFERED
mov dword [ebx + 0x130], eax
call fcn.00553130
add esp, 4
test eax, eax
je 0x54c65c
mov eax, dword [ebx + 0x128]
test ah, 0x10
jne 0x54c64e
cmp dword [ebx + 0x100], 1
je 0x54c64e
mov eax, dword [ebx + 0x130]
or eax, 0x10000
jmp 0x54c656
mov eax, dword [ebx + 0x130]
and eax, edi
mov dword [ebx + 0x130], eax
lea eax, [ebp - 0x150]
push eax
push ebx
call fcn.005382b0
mov ecx, eax
add esp, 8
cmp ecx, 0xffffffff
mov dword [ebp - 0x30], ecx
je 0x54c6d8
mov eax, dword [ebx + 0x100]
sub eax, 3
je 0x54c6ad
sub eax, 2
je 0x54c6b7
mov eax, dword [ebx + 0x12c]
test eax, 0x8000000
je 0x54c6d8
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 0x54c6d8
mov eax, dword [ebx + 0x128]
mov dword [ebp - 8], 3
or al, 8
mov dword [ebx + 0x128], eax
mov eax, dword [0x59d964]
test eax, eax
jne 0x54c6f3
cmp ecx, 0xfffffffa
jne 0x54c730
mov ecx, 1
mov dword [ebp - 0x30], ecx
jmp 0x54c808
cmp ecx, 0xfffffffa
je 0x54c730
cmp ecx, 1
je 0x54c70d
test esi, esi
je 0x54c70d
pop edi
pop esi
mov eax, 0xc0000234
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0xfffffffa
je 0x54c730
cmp ecx, 1
je 0x54c730
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x80]
test edx, edx
je 0x54c733
pop edi
pop esi
mov eax, 0xc0000232
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
cmp ecx, 0xfffffffc
jne 0x54c804
cmp word [ebx + 0x11a], 4
jge 0x54c771
mov ecx, dword [ebx + 0x50]
lea edi, [ebx + 0x50]
push ecx
call fcn.00540190
add esp, 4
test eax, eax
jne 0x54da2a
push edi
push eax
push 5
call fcn.00540120
add esp, 0xc
test eax, eax
jne 0x54da2a
mov al, byte [0x589664]
mov edx, dword [0x589660]
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 [0x59d964]
test eax, eax
je 0x54c926
cmp ecx, 0xfffffffa
jne 0x54c926
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 0x54c843
mov ecx, dword [edi + 0x84]
test ecx, ecx
jne 0x54c843
and al, 0x7f
jmp 0x54c845
test ecx, ecx
jl 0x54c7be
cmp dword [ebx + 0x100], 1
jne 0x54c926
cmp ecx, 1
je 0x54c827
cmp ecx, 2
je 0x54c827
test ecx, ecx
jne 0x54c926
mov ecx, dword [ebx + 0x130]
and eax, 1
shl eax, 6
and ecx, 0xffffffbf
or eax, ecx
mov dword [ebx + 0x130], eax
jmp 0x54c926
or al, 0x80
test esi, esi
mov dword [ebx + 0x130], eax
jne 0x54c854
mov esi, 0x100
lea edx, [ebp - 0x2c]
lea eax, [esi + 1]
push edx
push 0
push eax
call fcn.00540120
add esp, 0xc
test eax, eax
jne 0x54da2a
mov eax, dword [edi + 0x94]
test eax, eax
jne 0x54c892
mov ecx, dword [ebx + 0xbc]
mov edx, dword [ebp - 0x2c]
push ecx
push str.Unit__i
push edx
call fcn.005648d8
add esp, 0xc
jmp 0x54c8ad
mov eax, dword [edi + 0x90]
mov ecx, dword [ebp - 0x2c]
push esi
push eax
push ecx
call fcn.005649b0
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov byte [edx + esi], 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0056fe40
add esp, 4
cmp eax, 0xffffffff
mov dword [ebx + 0xa8], eax
jne 0x54c8e4
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 0x54c912
push eax
call fcn.0056fe40
mov ecx, dword [ebx + 0xa8]
push ecx
call fcn.0056fe40
add esp, 8
test eax, eax
jne 0x54c912
pop edi
pop esi
mov eax, 0xc000028e
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00540190
add esp, 4
test eax, eax
jne 0x54da2a
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
je 0x54c9c6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x54c9a3
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 0x54c9c0
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 0x54cac3
mov eax, dword [ebx + 0x128]
test eax, 0x400000
jne 0x54cac3
test al, 2
jne 0x54cac3
test byte [ebx + 0x12c], 0x40
jne 0x54cac3
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x54cac3
call edi
cmp eax, 5
je 0x54ca28
cmp eax, 0x13
je 0x54ca28
test dword [ebx + 0x12c], 0x8000000
je 0x54cac3
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 0x54caa3
test dword [ebx + 0x12c], 0x8000000
je 0x54caa3
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 0x54cabd
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 0x54cb6a
call edi
lea esi, [eax - 2]
cmp esi, 0xcc
ja case.0x54caeb.8
xor ecx, ecx
mov cl, byte [esi + 0x54db40]
jmp dword [ecx*4 + 0x54db24]
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 [0x59d964]
test eax, eax
je 0x54cb90
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x54cb89
test eax, eax
je 0x54cb89
cmp eax, 2
je 0x54cb89
cmp eax, 0xfffffffa
jne 0x54cb90
mov eax, 2
jmp 0x54cb97
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov cl, byte [ebx + 0x11e]
test cl, cl
jne 0x54cc6e
cmp byte [ebx + 0x11c], 1
jne 0x54cbda
test dword [ebx + 0x12c], 0x8000000
je 0x54cbce
mov ecx, dword [ebx + 0x128]
test ch, 0x10
je 0x54cbce
test ch, 1
jne 0x54cc67
mov byte [ebx + 0x11e], 3
jmp 0x54cc6e
mov ecx, dword [ebx + 0x130]
test ecx, 0x600000
je 0x54cc18
mov edx, dword [ebx + 0xbc]
cmp edx, 6
je 0x54cbfd
cmp edx, 0xffffffff
je 0x54cbfd
cmp edx, 0xfffffffe
jne 0x54cc18
shr ecx, 0x15
and ecx, 3
dec ecx
je 0x54cc3d
dec ecx
je 0x54cc67
dec ecx
je 0x54cbce
pop edi
pop esi
mov eax, 0xc0000030
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebx + 0x12c], 0x8000000
je 0x54cc46
cmp dword [ebx + 0x100], 1
je 0x54cc3d
mov ecx, dword [ebx + 0x128]
test ch, 1
je 0x54cc67
cmp eax, 2
jne 0x54cc67
mov byte [ebx + 0x11e], 1
jmp 0x54cc6e
mov ecx, dword [ebx + 0x128]
test ch, 1
je 0x54cc67
cmp eax, 2
jne 0x54cc67
test ecx, 0x400000
je 0x54cc67
mov byte [ebx + 0x11e], 1
jmp 0x54cc6e
mov byte [ebx + 0x11e], 2
mov cl, byte [ebx + 0x11e]
cmp cl, 3
je 0x54cc88
cmp byte [ebx + 0x11c], 1
je 0x54cc88
inc dword [ebx + 0xb4]
cmp cl, 1
jne 0x54cc9d
cmp byte [ebx + 0x11c], 1
je 0x54cc9d
add dword [ebx + 0xb4], 5
mov ecx, dword [ebx + 0x128]
test ecx, 0x400000
je 0x54ccbf
test ch, 0x10
je 0x54ccbf
cmp byte [ebx + 0x11d], 2
jne 0x54ccbf
inc dword [ebx + 0xb4]
test dword [ebx + 0x12c], 0x8000000
je 0x54ccdc
test ch, 0x10
je 0x54ccdc
test ch, 1
je 0x54ccdc
add dword [ebx + 0xb4], 2
cmp eax, 1
jne 0x54cce9
or ecx, 0x800000
jmp 0x54ccef
and ecx, 0xff7fffff
mov eax, ecx
mov dword [ebx + 0x128], ecx
test ah, 1
mov esi, 0xfff7ffff
je 0x54cdc3
push ebx
call fcn.00555a20
add esp, 4
test eax, eax
jne 0x54da2a
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x54cdc3
xor ecx, ecx
mov cl, byte [eax + 0x1e]
test ecx, ecx
je 0x54cdc3
mov edi, dword [eax + 0xc]
test byte [edi + 0x12c], 4
je 0x54cd6b
cmp byte [edi + 0x11e], 1
jne 0x54cd6b
mov eax, dword [edi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x54cd54
mov byte [eax + 5], 0x24
jmp 0x54cd5d
cmp cl, 0x2b
jne 0x54cd5d
mov byte [eax + 5], 0
mov eax, dword [edi + 0x12c]
and al, 0xfb
mov dword [edi + 0x12c], eax
push edi
call fcn.005500e0
mov ecx, dword [ebx + 0x7c]
add esp, 4
test ecx, ecx
je 0x54cd7f
mov byte [ecx + 0x1e], 0
test eax, eax
je 0x54cd97
push edi
push eax
push eax
push 1
call fcn.00547a70
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 0x54cde1
test eax, 0x800000
jne 0x54cde1
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.0x54ce47
mov edx, dword [ebp + 8]
cmp dword [edx + 0x54], 5
jne 0x54ce38
mov eax, dword [ebx + 0xa8]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x54ce19
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 0x54ce38
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.0x54ce47
jmp dword [eax*4 + 0x54dc10]
or dword [ebx + 0x12c], 0x80000
jmp case.default.0x54ce47
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.0x54ce47
mov eax, dword [ecx + 0x54]
mov edi, 5
cmp eax, edi
jne 0x54cec6
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.0x54ce47
test dword [ebx + 0x128], 0x800000
je case.default.0x54ce47
mov ecx, dword [ebx + 0xa8]
mov esi, 2
push esi
push 0
push 0
push ecx
call fcn.00556760
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x54cf25
mov edx, dword [ebx + 0xa8]
push edx
call fcn.0054dc40
add esp, 4
or eax, edx
je case.default.0x54ce47
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.0x54ce47
mov al, byte [ebx + 0x11c]
movsx ecx, al
dec ecx
cmp ecx, 6
ja case.default.0x54cf7b
jmp dword [ecx*4 + 0x54dc20]
mov eax, dword [ebx + 0xa8]
push eax
call fcn.0054dc40
mov ecx, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff7
push ecx
mov edi, eax
mov esi, edx
call fcn.00556760
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x54d63c
sub edi, eax
sbb esi, edx
cmp edi, 9
jne 0x54d63c
test esi, esi
jne 0x54d63c
test byte [ebx + 0x12c], 0x40
je 0x54d05f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x54d05f
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 0x54d01d
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.00556760
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.00556760
add esp, 0x10
jmp 0x54d07a
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 0x54d005
cmp dword [ebp + 0xc], 9
je 0x54d096
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x54d649
test byte [ebx + 0x12c], 2
je 0x54d0d3
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 0x54d105
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.0x54ce47
cmp byte [ebp - 0x20], 0x1a
jne case.default.0x54ce47
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff7
jmp 0x54d621
cmp al, 7
mov dword [ebp - 0xc], 3
jne 0x54d137
cmp byte [ebx + 0x11e], 3
je 0x54d150
cmp al, 5
jne 0x54d153
mov al, byte [ebx + 0x11e]
cmp al, 3
jne 0x54d14c
mov dword [ebp - 0xc], 1
cmp al, 2
jne 0x54d153
mov dword [ebp - 0xc], esi
mov edx, dword [ebx + 0xa8]
push edx
call fcn.0054dc40
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.00556760
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x54d63c
mov ecx, dword [ebp - 0xc]
sub edi, eax
sbb esi, edx
xor eax, eax
cmp edi, ecx
jne 0x54d63c
cmp esi, eax
jne 0x54d63c
test byte [ebx + 0x12c], 0x40
je 0x54d27d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x54d27d
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 0x54d235
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x20
mov dword [ebx + 0xac], eax
jne 0x54d011
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
call fcn.00556760
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x54d65c
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.00556760
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.00556760
add esp, 0x10
jmp 0x54d29a
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 0x54d005
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
cmp edx, eax
je 0x54d2be
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x54d649
cmp byte [ebp - 0x24], 0x1a
jne case.default.0x54ce47
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
push 1
push ecx
push edx
jmp 0x54d621
mov edx, dword [ebx + 0xa8]
push edx
call fcn.0054dc40
mov edi, eax
mov eax, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push eax
mov esi, edx
call fcn.00556760
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x54d084
sub edi, eax
sbb esi, edx
cmp edi, 4
jne 0x54d084
test esi, esi
jne 0x54d084
test byte [ebx + 0x12c], 0x40
je 0x54d39b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x54d39b
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 0x54d005
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push edi
call fcn.00556760
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.00556760
add esp, 0x10
jmp 0x54d3b6
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 0x54d005
cmp dword [ebp + 0xc], 4
je 0x54d3d6
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x54d649
xor ecx, ecx
mov ch, byte [ebp - 0x23]
mov cl, byte [ebp - 0x24]
cmp cx, 1
jne case.default.0x54ce47
cmp byte [ebp - 0x22], 0x1a
jne case.default.0x54ce47
mov edx, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push edx
jmp 0x54d628
mov ecx, dword [ebx + 0xa8]
mov dword [ebp - 0xc], 1
push ecx
call fcn.0054dc40
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.00556760
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x54d63c
mov ecx, dword [ebx + 0xb4]
sub edi, eax
sbb esi, edx
xor eax, eax
cmp edi, ecx
jne 0x54d63c
cmp esi, eax
jne 0x54d63c
lea edx, [ebp - 0x18]
push edx
push eax
push ecx
call fcn.00540120
add esp, 0xc
test eax, eax
jne 0x54da2a
test byte [ebx + 0x12c], 0x40
je 0x54d510
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x54d510
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 0x54d005
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.00556760
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.00556760
add esp, 0x10
jmp 0x54d530
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 0x54d005
mov edx, dword [ebx + 0xb4]
mov eax, dword [ebp + 0xc]
cmp eax, edx
je 0x54d5b7
mov edx, dword [ebx + 0xa8]
push 2
push 0
push 0
push edx
call fcn.00556760
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54cf0d
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.00540190
add esp, 4
test eax, eax
je case.default.0x54ce47
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x128]
test ah, 2
jne 0x54d5d2
test dword [ebx + 0x12c], 0x60000000
jne 0x54d5d2
mov cl, 0x20
jmp 0x54d5d4
xor cl, cl
mov edi, dword [ebp - 0x18]
cmp byte [edi], 0x1a
je 0x54d5e0
xor esi, esi
jmp 0x54d5f6
lea eax, [edi + 1]
lea esi, [edx + edi]
cmp eax, esi
jae 0x54d5f3
cmp byte [eax], cl
jne 0x54d5dc
inc eax
cmp eax, esi
jb 0x54d5ea
mov esi, dword [ebp - 0xc]
push edi
call fcn.00540190
add esp, 4
test eax, eax
jne 0x54da2a
test esi, esi
je case.default.0x54ce47
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.00556760
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne case.default.0x54ce47
jmp 0x54d005
mov ecx, dword [ebx + 0xa8]
push 2
push 0
push 0
push ecx
call fcn.00556760
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54cf0d
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.0x54ce47
push 0xc77
push 0x589670
push esi
push 0xc0000008
call fcn.00547a40
add esp, 0x10
mov eax, dword [ebx + 0x128]
test ah, 4
je 0x54d72b
test eax, 0x800000
je 0x54d72b
mov edx, dword [ebx + 0xa8]
push 2
push 0
push 0
push edx
call fcn.00556760
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54cf0d
cmp dword [ebx + 0x100], 7
jne 0x54d706
mov eax, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.00556760
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54cf0d
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 0x54d75e
test eax, 0x800000
je 0x54d75e
mov edx, dword [ebx + 0x12c]
mov ecx, 0x8000000
test ecx, edx
je 0x54d751
test ah, 0x10
jne 0x54d763
or eax, 0x80000000
mov dword [ebx + 0x128], eax
jmp 0x54d763
mov ecx, 0x8000000
mov eax, dword [ebx + 0x128]
test ah, 0x80
jne 0x54d77e
mov dx, word [ebx + 0xb4]
mov word [ebx + 0x118], dx
jmp 0x54d7d1
mov al, byte [ebx + 0x11e]
cmp al, 1
mov eax, dword [ebx + 0x12c]
jne 0x54d7b9
test ecx, eax
je 0x54d79d
mov word [ebx + 0x118], 0x50
jmp 0x54d7a6
mov word [ebx + 0x118], 0x51
cmp byte [ebx + 0x11c], 1
je 0x54d7d1
add word [ebx + 0x118], 4
jmp 0x54d7d1
test ecx, eax
je 0x54d7c8
mov word [ebx + 0x118], 0x4f
jmp 0x54d7d1
mov word [ebx + 0x118], 0x50
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x54d7e2
mov dword [esi + 0x14], 1
test dword [ebx + 0x12c], ecx
je 0x54d7f9
mov edx, dword [esi + 0x10]
mov eax, 0x7ffffe00
cmp edx, eax
jle 0x54d7f9
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x54d818
mov eax, dword [ebx + 0x12c]
and eax, ecx
neg eax
sbb eax, eax
and eax, 0xffffe400
add eax, 0x2000
jmp 0x54d82c
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 0x54d842
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 0x54d88f
lea edx, [ebp + 8]
push edx
push 0
push 0x54
call fcn.00540120
add esp, 0xc
test eax, eax
je 0x54d884
push ebx
push eax
push eax
push 1
call fcn.00547a70
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 0x54d8a6
test dword [ebx + 0x12c], 0x60000000
je 0x54d8b8
push esi
push ebx
call fcn.00537cd0
add esp, 8
test eax, eax
jne 0x54da2a
mov eax, dword [ebx + 0xb0]
lea esi, [ebx + 0x28]
push esi
push 0
push eax
call fcn.00540120
mov edi, eax
add esp, 0xc
test edi, edi
je 0x54d8da
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 0x54d924
cmp dword [ebx + 0x100], 7
jne 0x54d924
mov edx, dword [ebx + 0xa8]
push edx
call fcn.0054dc40
add esp, 4
or eax, edx
jne 0x54d924
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 [0x599f98], 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