Function at 0x546ed0
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 0x546f21
cmp dword [eax + 0x7c], esi
jne 0x546f21
cmp dword [eax + 0x2c], esi
jne 0x546f21
cmp dword [eax + 0x54], esi
jne 0x546f21
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.00549320
add esp, 0x10
cmp eax, esi
jne 0x5490ba
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.0053b7b0
add esp, 0xc
cmp eax, esi
jne 0x5490ba
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 0x546fd8
xor edx, edx
mov dword [ebx + 0x90], 1
mov dword [ebx + 0x94], edx
jmp 0x546fda
xor edx, edx
mov ecx, dword [ebp + 8]
mov edi, 2
cmp dword [ecx + 0x44], edx
je 0x54701c
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 0x54702f
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.0x547040
mov esi, 0x40
jmp dword [ecx*4 + 0x5490c4]
test byte [ebx + 0x128], 2
je 0x54705c
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.0x547040.0
jmp 0x5470d9
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 0x5470d6
test byte [ebx + 0x128], 2
je 0x5470b5
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.0x5470ee
jmp dword [ecx*4 + 0x5490d4]
test byte [ebx + 0x128], 2
je 0x54710a
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.0x5470ee.0
jmp 0x54718f
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 0x54718c
test byte [ebx + 0x128], 2
je 0x547168
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.0x5471a0
jmp dword [eax*4 + 0x5490e4]
mov eax, dword [ebx + 0x128]
or ah, 8
jmp 0x5471e1
mov eax, dword [ebx + 0x128]
or ah, 0x10
jmp 0x5471e1
mov eax, dword [ebx + 0x128]
or ah, 0x20
jmp 0x5471e1
mov eax, dword [ebx + 0x128]
test al, 2
je 0x5471de
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.0x5471f3
jmp dword [eax*4 + 0x5490f8]
test dword [ebx + 0x12c], 0x8000000
je case.0x5471f3.4
lea edx, [ebp - 0x150]
push 0x585618
push edx
call fcn.0055fe10
add esp, 8
test eax, eax
jne case.0x5471f3.4
mov eax, dword [ebx + 0x128]
or al, 0x20
mov dword [ebx + 0x128], eax
mov eax, dword [ebx + 0x128]
test al, 2
je 0x547242
test dword [ebx + 0x12c], 0x8000000
je 0x547252
test dword [ebx + 0x12c], 0x400000
je 0x54730c
or al, 8
mov dword [ebx + 0x128], eax
mov eax, dword [ebp - 8]
or al, 3
jmp 0x547311
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebp - 8]
or ecx, 8
or al, 3
mov dword [ebx + 0x128], ecx
jmp 0x547311
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x547050
test ah, 4
je 0x5472a0
test dword [ebx + 0x12c], 0x8000000
je 0x547050
mov eax, dword [ebp - 8]
or al, 1
jmp 0x547311
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x547050
test ah, 4
je 0x5472ca
test dword [ebx + 0x12c], 0x8000000
je 0x547050
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 0x547314
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x547050
test ah, 4
je 0x54730c
test dword [ebx + 0x12c], 0x8000000
je 0x547050
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.0x54750b
jmp dword [eax*4 + 0x549110]
test byte [ebx + 0x128], 0x10
je case.0x547323.0
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x128], 0x10
je case.0x547323.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 0x54736a
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 0x54737e
or al, 0x40
jmp 0x547385
cmp ecx, 6
jne case.0x547323.0
or al, 0x80
mov dword [ebx + 0x128], eax
mov eax, dword [edx + 0x34]
cmp eax, 4
ja case.default.0x5473a1
mov esi, 0x200
mov ecx, 0x20000000
jmp dword [eax*4 + 0x54912c]
mov eax, dword [ebx + 0x128]
test ah, 0x30
jne 0x5473ed
or ah, 1
mov dword [ebx + 0x128], eax
jmp 0x547442
mov eax, dword [ebx + 0x128]
test al, 0x10
je 0x54737a
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x128]
test al, 0x10
je 0x547383
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebx + 0x130], 0x2000
jne 0x547427
or eax, esi
mov dword [ebx + 0x128], eax
jmp 0x547442
mov eax, dword [ebx + 0x128]
or ah, 1
mov dword [ebx + 0x128], eax
jmp 0x547442
mov eax, dword [ebx + 0x130]
test ah, 0x20
jne 0x547427
or dword [ebx + 0x128], esi
jmp 0x547442
mov eax, dword [ebx + 0x12c]
or eax, ecx
jmp 0x54743c
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.0x54750b
jmp dword [eax*4 + 0x549140]
mov eax, dword [ebx + 0x128]
test ah, 0x31
je case.0x547457.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 0x5474b3
jle 0x547493
cmp eax, 3
jle 0x5474ff
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 0x5474da
mov eax, dword [ebx + 0x128]
test ah, 0x10
je 0x5474da
test ah, 1
je 0x5474da
mov byte [ebx + 0x11e], 2
jmp 0x5474ff
mov al, byte [ebx + 0x11c]
cmp al, 1
je 0x5474f8
cmp al, 4
je 0x5474f8
test dword [ebx + 0x128], esi
jne 0x5474f8
test ecx, 0x60000000
je 0x5474ff
mov byte [ebx + 0x11e], 3
mov eax, dword [edx + 0x40]
cmp eax, 3
ja case.default.0x54750b
jmp dword [eax*4 + 0x549160]
mov ecx, dword [ebx + 0x128]
test ch, 0x20
jne 0x54758b
mov byte [ebx + 0x11d], 1
jmp 0x547592
mov ecx, dword [ebx + 0x128]
test ch, 0x10
je 0x54754b
mov al, byte [ebx + 0x11c]
cmp al, 1
je 0x54754b
test al, al
je 0x54754b
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test ch, 0x20
je 0x54751d
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x128]
test ch, 0x20
je 0x547573
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x11d], 2
jmp 0x547592
mov ecx, dword [ebx + 0x128]
test ch, 0x14
jne 0x547050
mov byte [ebx + 0x11d], 3
mov al, byte [ebx + 0x11d]
cmp al, 2
je 0x5475a1
test ch, 0x10
je 0x5475a8
or dword [ebp - 4], 0x10000000
mov edi, dword [edx + 0x4c]
test edi, edi
jne 0x5475fa
cmp al, 2
je 0x5475f3
cmp al, 3
je 0x5475f3
test ch, 0x30
jne 0x5475f3
test dword [ebx + 0x12c], 0x60000000
jne 0x5475ea
test esi, ecx
je 0x5475d5
mov byte [ebx + 0x11c], 4
jmp 0x5475fa
cmp byte [ebx + 0x11e], 3
setne dl
add edx, 5
mov byte [ebx + 0x11c], dl
jmp 0x5475fa
mov byte [ebx + 0x11c], 5
jmp 0x5475fa
mov byte [ebx + 0x11c], 1
cmp al, 2
je 0x547607
cmp al, 3
je 0x547607
test ch, 0x30
je 0x54761c
cmp byte [ebx + 0x11c], 1
je 0x54761c
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 0x547646
test ch, 0xc
je 0x547646
cmp byte [ebx + 0x11c], 5
je 0x547646
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 0x11c]
cmp al, 4
jne 0x547665
cmp byte [ebx + 0x11e], 3
je 0x547665
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 0x54767f
test esi, 0x8000000
je 0x5476a0
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 0x5476db
dec ecx
je 0x5476f9
dec ecx
je 0x5476ca
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 0x5476f9
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 0x5477dd
cmp al, 1
je 0x5477c1
mov ecx, dword [ebx + 0x128]
test ch, 0x10
jne 0x5477c1
test edx, edx
jne 0x54779f
test esi, 0x40000000
jne 0x54779f
test esi, 0x8000000
je 0x547756
test ch, 1
je 0x547756
mov eax, 0x400
or ch, 0x80
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0x128], ecx
jmp 0x54788f
test ch, 2
je 0x54777d
or ch, 0x80
mov dword [ebx + 0xb4], 0x800
mov dword [ebx + 0xb8], 0x1fe
mov dword [ebx + 0x128], ecx
jmp 0x54788f
or ch, 0x80
mov dword [ebx + 0xb4], 0x85
mov dword [ebx + 0xb8], 0x84
mov dword [ebx + 0x128], ecx
jmp 0x54788f
or ch, 0x80
mov dword [ebx + 0xb4], 0x400
mov dword [ebx + 0xb8], 0x10000
mov dword [ebx + 0x128], ecx
jmp 0x54788f
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 0x5477fb
cmp edi, 1
jl 0x5477ef
cmp edi, 0xfffffffa
jbe 0x5477fb
pop edi
pop esi
mov eax, 0xc0000245
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x549015
mov ecx, dword [ebx + 0x128]
mov dword [ebx + 0xb8], edi
test ch, 2
je 0x547828
test ecx, 0x1000000
jne 0x547828
mov edx, dword [ebp + 8]
cmp dword [edx + 0x78], 0
jne 0x547828
shl edi, 2
movsx edx, al
dec edx
cmp edx, 6
ja case.default.0x547831
jmp dword [edx*4 + 0x549170]
add edi, 4
jmp case.0x547831.1
add edi, 8
jmp case.0x547831.1
test esi, 0x40000000
je case.0x547831.1
or ch, 0x80
mov edi, 0x400
mov dword [ebx + 0xb8], 0x10000
mov dword [ebx + 0x128], ecx
jmp case.0x547831.1
cmp byte [ebx + 0x11e], 3
jne case.0x547831.1
inc edi
jmp case.0x547831.1
push 0x5db
push 0x585620
push 2
push 0xc0000008
call fcn.005430d0
add esp, 0x10
mov dword [ebx + 0xb4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
test eax, eax
je 0x5478a5
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 0x5478e0
mov ecx, dword [ebx + 0x128]
test ch, 1
jne 0x5478e0
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.0x5478e9
jmp dword [eax*4 + 0x54918c]
mov byte [ebx + 0x121], 0
jmp 0x547909
mov byte [ebx + 0x121], 0x27
jmp 0x547909
mov byte [ebx + 0x121], 0x22
mov eax, dword [edx + 0x70]
test eax, eax
je 0x54793b
mov ecx, dword [ebx + 0x128]
test ch, 1
jne 0x54793b
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 0x547976
dec eax
je 0x547966
dec eax
je 0x547976
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 0x547990
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 0x5479d5
jle 0x5479b5
cmp eax, 3
jg 0x5479b5
mov eax, dword [ebx + 0x128]
test ah, 0x30
je 0x5479d5
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.0x5479e9
mov ecx, 0xfffffffb
jmp dword [eax*4 + 0x54919c]
mov eax, dword [edx + 0x50]
test eax, eax
jne 0x547a07
test dword [ebx + 0x12c], 0x8000000
je 0x547aa4
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x130]
or ecx, 4
or al, 1
mov dword [ebx + 0x128], ecx
jmp 0x547abc
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 0x547ac2
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 0x547abc
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 0x547ac2
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 0x547b0d
test ah, 0xc
jne 0x547afe
test ah, 0x10
je 0x547ae6
mov dword [ebx + 0x100], 2
jmp 0x547ba4
test ah, 0x20
je 0x547ba4
mov dword [ebx + 0x100], 8
jmp 0x547ba4
mov dword [ebx + 0x100], 3
jmp 0x547ba4
test ah, 2
jne 0x547b5b
mov ecx, dword [ebx + 0x12c]
test ecx, 0x20000000
jne 0x547b5b
test ecx, 0x40000000
je 0x547ba4
test ah, 0xc
jne 0x547b4f
test ah, 0x10
je 0x547b3e
mov dword [ebx + 0x100], 4
jmp 0x547ba4
test ah, 0x20
je 0x547ba4
mov dword [ebx + 0x100], 0xa
jmp 0x547ba4
mov dword [ebx + 0x100], 5
jmp 0x547ba4
test ah, 0xc
jne 0x547b82
test ah, 0x10
je 0x547b71
mov dword [ebx + 0x100], 6
jmp 0x547ba4
test ah, 0x20
je 0x547ba4
mov dword [ebx + 0x100], 9
jmp 0x547ba4
test dword [ebx + 0x12c], 0x20000000
je 0x547b9a
mov dword [ebx + 0x100], 7
jmp 0x547ba4
mov dword [ebx + 0x100], 0xb
mov eax, dword [edx + 0x80]
test eax, eax
mov eax, dword [0x599834]
je 0x547bc3
test eax, eax
jne 0x547bc3
pop edi
pop esi
mov eax, 0xc0000232
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0x90]
test ecx, ecx
je 0x547be8
test eax, eax
jne 0x547bdd
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 0x547beb
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x547c41
lea ecx, [ebp - 0x150]
push 0x585644
push ecx
call fcn.0055fe10
add esp, 8
test eax, eax
jne 0x547c41
mov edx, dword [0x58564c]
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 0x547c66
dec eax
je 0x547c9e
dec eax
je 0x547c71
pop edi
pop esi
mov eax, 0xc0000030
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x130]
test ah, 0x80
je 0x547ca4
mov eax, dword [ebx + 0x128]
test ah, 0x10
jne 0x547c9e
lea edx, [ebp - 0x150]
push edx
push ebx
call fcn.00533940
add esp, 8
cmp eax, 0xffffffff
jne 0x547c9e
mov eax, dword [ebx + 0x130]
or eax, 0x10000
jmp 0x547ca6
mov eax, dword [ebx + 0x130]
and eax, edi
push str.FORT_BUFFERED
mov dword [ebx + 0x130], eax
call fcn.0054e7c0
add esp, 4
test eax, eax
je 0x547cec
mov eax, dword [ebx + 0x128]
test ah, 0x10
jne 0x547cde
cmp dword [ebx + 0x100], 1
je 0x547cde
mov eax, dword [ebx + 0x130]
or eax, 0x10000
jmp 0x547ce6
mov eax, dword [ebx + 0x130]
and eax, edi
mov dword [ebx + 0x130], eax
lea eax, [ebp - 0x150]
push eax
push ebx
call fcn.00533940
mov ecx, eax
add esp, 8
cmp ecx, 0xffffffff
mov dword [ebp - 0x30], ecx
je 0x547d68
mov eax, dword [ebx + 0x100]
sub eax, 3
je 0x547d3d
sub eax, 2
je 0x547d47
mov eax, dword [ebx + 0x12c]
test eax, 0x8000000
je 0x547d68
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 0x547d68
mov eax, dword [ebx + 0x128]
mov dword [ebp - 8], 3
or al, 8
mov dword [ebx + 0x128], eax
mov eax, dword [0x599834]
test eax, eax
jne 0x547d83
cmp ecx, 0xfffffffa
jne 0x547dc0
mov ecx, 1
mov dword [ebp - 0x30], ecx
jmp 0x547e98
cmp ecx, 0xfffffffa
je 0x547dc0
cmp ecx, 1
je 0x547d9d
test esi, esi
je 0x547d9d
pop edi
pop esi
mov eax, 0xc0000234
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0xfffffffa
je 0x547dc0
cmp ecx, 1
je 0x547dc0
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x80]
test edx, edx
je 0x547dc3
pop edi
pop esi
mov eax, 0xc0000232
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
cmp ecx, 0xfffffffc
jne 0x547e94
cmp word [ebx + 0x11a], 4
jge 0x547e01
mov ecx, dword [ebx + 0x50]
lea edi, [ebx + 0x50]
push ecx
call fcn.0053b820
add esp, 4
test eax, eax
jne 0x5490ba
push edi
push eax
push 5
call fcn.0053b7b0
add esp, 0xc
test eax, eax
jne 0x5490ba
mov al, byte [0x585664]
mov edx, dword [0x585660]
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 [0x599834]
test eax, eax
je 0x547fb6
cmp ecx, 0xfffffffa
jne 0x547fb6
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 0x547ed3
mov ecx, dword [edi + 0x84]
test ecx, ecx
jne 0x547ed3
and al, 0x7f
jmp 0x547ed5
test ecx, ecx
jl 0x547e4e
cmp dword [ebx + 0x100], 1
jne 0x547fb6
cmp ecx, 1
je 0x547eb7
cmp ecx, 2
je 0x547eb7
test ecx, ecx
jne 0x547fb6
mov ecx, dword [ebx + 0x130]
and eax, 1
shl eax, 6
and ecx, 0xffffffbf
or eax, ecx
mov dword [ebx + 0x130], eax
jmp 0x547fb6
or al, 0x80
test esi, esi
mov dword [ebx + 0x130], eax
jne 0x547ee4
mov esi, 0x100
lea edx, [ebp - 0x2c]
lea eax, [esi + 1]
push edx
push 0
push eax
call fcn.0053b7b0
add esp, 0xc
test eax, eax
jne 0x5490ba
mov eax, dword [edi + 0x94]
test eax, eax
jne 0x547f22
mov ecx, dword [ebx + 0xbc]
mov edx, dword [ebp - 0x2c]
push ecx
push str.Unit__i
push edx
call fcn.0055ff68
add esp, 0xc
jmp 0x547f3d
mov eax, dword [edi + 0x90]
mov ecx, dword [ebp - 0x2c]
push esi
push eax
push ecx
call fcn.00560040
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov byte [edx + esi], 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0056b4d0
add esp, 4
cmp eax, 0xffffffff
mov dword [ebx + 0xa8], eax
jne 0x547f74
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 0x547fa2
push eax
call fcn.0056b4d0
mov ecx, dword [ebx + 0xa8]
push ecx
call fcn.0056b4d0
add esp, 8
test eax, eax
jne 0x547fa2
pop edi
pop esi
mov eax, 0xc000028e
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0053b820
add esp, 4
test eax, eax
jne 0x5490ba
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
je 0x548056
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x548033
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 0x548050
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 0x548153
mov eax, dword [ebx + 0x128]
test eax, 0x400000
jne 0x548153
test al, 2
jne 0x548153
test byte [ebx + 0x12c], 0x40
jne 0x548153
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x548153
call edi
cmp eax, 5
je 0x5480b8
cmp eax, 0x13
je 0x5480b8
test dword [ebx + 0x12c], 0x8000000
je 0x548153
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 0x548133
test dword [ebx + 0x12c], 0x8000000
je 0x548133
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 0x54814d
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 0x5481fa
call edi
lea esi, [eax - 2]
cmp esi, 0xcc
ja case.0x54817b.8
xor ecx, ecx
mov cl, byte [esi + 0x5491d0]
jmp dword [ecx*4 + 0x5491b4]
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 [0x599834]
test eax, eax
je 0x548220
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x548219
test eax, eax
je 0x548219
cmp eax, 2
je 0x548219
cmp eax, 0xfffffffa
jne 0x548220
mov eax, 2
jmp 0x548227
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov cl, byte [ebx + 0x11e]
test cl, cl
jne 0x5482fe
cmp byte [ebx + 0x11c], 1
jne 0x54826a
test dword [ebx + 0x12c], 0x8000000
je 0x54825e
mov ecx, dword [ebx + 0x128]
test ch, 0x10
je 0x54825e
test ch, 1
jne 0x5482f7
mov byte [ebx + 0x11e], 3
jmp 0x5482fe
mov ecx, dword [ebx + 0x130]
test ecx, 0x600000
je 0x5482a8
mov edx, dword [ebx + 0xbc]
cmp edx, 6
je 0x54828d
cmp edx, 0xffffffff
je 0x54828d
cmp edx, 0xfffffffe
jne 0x5482a8
shr ecx, 0x15
and ecx, 3
dec ecx
je 0x5482cd
dec ecx
je 0x5482f7
dec ecx
je 0x54825e
pop edi
pop esi
mov eax, 0xc0000030
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebx + 0x12c], 0x8000000
je 0x5482d6
cmp dword [ebx + 0x100], 1
je 0x5482cd
mov ecx, dword [ebx + 0x128]
test ch, 1
je 0x5482f7
cmp eax, 2
jne 0x5482f7
mov byte [ebx + 0x11e], 1
jmp 0x5482fe
mov ecx, dword [ebx + 0x128]
test ch, 1
je 0x5482f7
cmp eax, 2
jne 0x5482f7
test ecx, 0x400000
je 0x5482f7
mov byte [ebx + 0x11e], 1
jmp 0x5482fe
mov byte [ebx + 0x11e], 2
mov cl, byte [ebx + 0x11e]
cmp cl, 3
je 0x548318
cmp byte [ebx + 0x11c], 1
je 0x548318
inc dword [ebx + 0xb4]
cmp cl, 1
jne 0x54832d
cmp byte [ebx + 0x11c], 1
je 0x54832d
add dword [ebx + 0xb4], 5
mov ecx, dword [ebx + 0x128]
test ecx, 0x400000
je 0x54834f
test ch, 0x10
je 0x54834f
cmp byte [ebx + 0x11d], 2
jne 0x54834f
inc dword [ebx + 0xb4]
test dword [ebx + 0x12c], 0x8000000
je 0x54836c
test ch, 0x10
je 0x54836c
test ch, 1
je 0x54836c
add dword [ebx + 0xb4], 2
cmp eax, 1
jne 0x548379
or ecx, 0x800000
jmp 0x54837f
and ecx, 0xff7fffff
mov eax, ecx
mov dword [ebx + 0x128], ecx
test ah, 1
mov esi, 0xfff7ffff
je 0x548453
push ebx
call fcn.005510b0
add esp, 4
test eax, eax
jne 0x5490ba
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x548453
xor ecx, ecx
mov cl, byte [eax + 0x1e]
test ecx, ecx
je 0x548453
mov edi, dword [eax + 0xc]
test byte [edi + 0x12c], 4
je 0x5483fb
cmp byte [edi + 0x11e], 1
jne 0x5483fb
mov eax, dword [edi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x5483e4
mov byte [eax + 5], 0x24
jmp 0x5483ed
cmp cl, 0x2b
jne 0x5483ed
mov byte [eax + 5], 0
mov eax, dword [edi + 0x12c]
and al, 0xfb
mov dword [edi + 0x12c], eax
push edi
call fcn.0054b770
mov ecx, dword [ebx + 0x7c]
add esp, 4
test ecx, ecx
je 0x54840f
mov byte [ecx + 0x1e], 0
test eax, eax
je 0x548427
push edi
push eax
push eax
push 1
call fcn.00543100
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 0x548471
test eax, 0x800000
jne 0x548471
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.0x5484d7
mov edx, dword [ebp + 8]
cmp dword [edx + 0x54], 5
jne 0x5484c8
mov eax, dword [ebx + 0xa8]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5484a9
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 0x5484c8
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.0x5484d7
jmp dword [eax*4 + 0x5492a0]
or dword [ebx + 0x12c], 0x80000
jmp case.default.0x5484d7
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.0x5484d7
mov eax, dword [ecx + 0x54]
mov edi, 5
cmp eax, edi
jne 0x548556
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.0x5484d7
test dword [ebx + 0x128], 0x800000
je case.default.0x5484d7
mov ecx, dword [ebx + 0xa8]
mov esi, 2
push esi
push 0
push 0
push ecx
call fcn.00551df0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5485b5
mov edx, dword [ebx + 0xa8]
push edx
call fcn.005492d0
add esp, 4
or eax, edx
je case.default.0x5484d7
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.0x5484d7
mov al, byte [ebx + 0x11c]
movsx ecx, al
dec ecx
cmp ecx, 6
ja case.default.0x54860b
jmp dword [ecx*4 + 0x5492b0]
mov eax, dword [ebx + 0xa8]
push eax
call fcn.005492d0
mov ecx, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff7
push ecx
mov edi, eax
mov esi, edx
call fcn.00551df0
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x548ccc
sub edi, eax
sbb esi, edx
cmp edi, 9
jne 0x548ccc
test esi, esi
jne 0x548ccc
test byte [ebx + 0x12c], 0x40
je 0x5486ef
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x5486ef
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 0x5486ad
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.00551df0
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.00551df0
add esp, 0x10
jmp 0x54870a
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 0x548695
cmp dword [ebp + 0xc], 9
je 0x548726
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x548cd9
test byte [ebx + 0x12c], 2
je 0x548763
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 0x548795
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.0x5484d7
cmp byte [ebp - 0x20], 0x1a
jne case.default.0x5484d7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff7
jmp 0x548cb1
cmp al, 7
mov dword [ebp - 0xc], 3
jne 0x5487c7
cmp byte [ebx + 0x11e], 3
je 0x5487e0
cmp al, 5
jne 0x5487e3
mov al, byte [ebx + 0x11e]
cmp al, 3
jne 0x5487dc
mov dword [ebp - 0xc], 1
cmp al, 2
jne 0x5487e3
mov dword [ebp - 0xc], esi
mov edx, dword [ebx + 0xa8]
push edx
call fcn.005492d0
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.00551df0
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x548ccc
mov ecx, dword [ebp - 0xc]
sub edi, eax
sbb esi, edx
xor eax, eax
cmp edi, ecx
jne 0x548ccc
cmp esi, eax
jne 0x548ccc
test byte [ebx + 0x12c], 0x40
je 0x54890d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x54890d
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 0x5488c5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x20
mov dword [ebx + 0xac], eax
jne 0x5486a1
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
call fcn.00551df0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x548cec
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.00551df0
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.00551df0
add esp, 0x10
jmp 0x54892a
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 0x548695
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
cmp edx, eax
je 0x54894e
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x548cd9
cmp byte [ebp - 0x24], 0x1a
jne case.default.0x5484d7
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
push 1
push ecx
push edx
jmp 0x548cb1
mov edx, dword [ebx + 0xa8]
push edx
call fcn.005492d0
mov edi, eax
mov eax, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push eax
mov esi, edx
call fcn.00551df0
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x548714
sub edi, eax
sbb esi, edx
cmp edi, 4
jne 0x548714
test esi, esi
jne 0x548714
test byte [ebx + 0x12c], 0x40
je 0x548a2b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x548a2b
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 0x548695
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push edi
call fcn.00551df0
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.00551df0
add esp, 0x10
jmp 0x548a46
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 0x548695
cmp dword [ebp + 0xc], 4
je 0x548a66
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x548cd9
xor ecx, ecx
mov ch, byte [ebp - 0x23]
mov cl, byte [ebp - 0x24]
cmp cx, 1
jne case.default.0x5484d7
cmp byte [ebp - 0x22], 0x1a
jne case.default.0x5484d7
mov edx, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push edx
jmp 0x548cb8
mov ecx, dword [ebx + 0xa8]
mov dword [ebp - 0xc], 1
push ecx
call fcn.005492d0
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.00551df0
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x548ccc
mov ecx, dword [ebx + 0xb4]
sub edi, eax
sbb esi, edx
xor eax, eax
cmp edi, ecx
jne 0x548ccc
cmp esi, eax
jne 0x548ccc
lea edx, [ebp - 0x18]
push edx
push eax
push ecx
call fcn.0053b7b0
add esp, 0xc
test eax, eax
jne 0x5490ba
test byte [ebx + 0x12c], 0x40
je 0x548ba0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x548ba0
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 0x548695
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.00551df0
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.00551df0
add esp, 0x10
jmp 0x548bc0
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 0x548695
mov edx, dword [ebx + 0xb4]
mov eax, dword [ebp + 0xc]
cmp eax, edx
je 0x548c47
mov edx, dword [ebx + 0xa8]
push 2
push 0
push 0
push edx
call fcn.00551df0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54859d
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.0053b820
add esp, 4
test eax, eax
je case.default.0x5484d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x128]
test ah, 2
jne 0x548c62
test dword [ebx + 0x12c], 0x60000000
jne 0x548c62
mov cl, 0x20
jmp 0x548c64
xor cl, cl
mov edi, dword [ebp - 0x18]
cmp byte [edi], 0x1a
je 0x548c70
xor esi, esi
jmp 0x548c86
lea eax, [edi + 1]
lea esi, [edx + edi]
cmp eax, esi
jae 0x548c83
cmp byte [eax], cl
jne 0x548c6c
inc eax
cmp eax, esi
jb 0x548c7a
mov esi, dword [ebp - 0xc]
push edi
call fcn.0053b820
add esp, 4
test eax, eax
jne 0x5490ba
test esi, esi
je case.default.0x5484d7
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.00551df0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne case.default.0x5484d7
jmp 0x548695
mov ecx, dword [ebx + 0xa8]
push 2
push 0
push 0
push ecx
call fcn.00551df0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54859d
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.0x5484d7
push 0xc77
push 0x585670
push esi
push 0xc0000008
call fcn.005430d0
add esp, 0x10
mov eax, dword [ebx + 0x128]
test ah, 4
je 0x548dbb
test eax, 0x800000
je 0x548dbb
mov edx, dword [ebx + 0xa8]
push 2
push 0
push 0
push edx
call fcn.00551df0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54859d
cmp dword [ebx + 0x100], 7
jne 0x548d96
mov eax, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.00551df0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x54859d
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 0x548dee
test eax, 0x800000
je 0x548dee
mov edx, dword [ebx + 0x12c]
mov ecx, 0x8000000
test ecx, edx
je 0x548de1
test ah, 0x10
jne 0x548df3
or eax, 0x80000000
mov dword [ebx + 0x128], eax
jmp 0x548df3
mov ecx, 0x8000000
mov eax, dword [ebx + 0x128]
test ah, 0x80
jne 0x548e0e
mov dx, word [ebx + 0xb4]
mov word [ebx + 0x118], dx
jmp 0x548e61
mov al, byte [ebx + 0x11e]
cmp al, 1
mov eax, dword [ebx + 0x12c]
jne 0x548e49
test ecx, eax
je 0x548e2d
mov word [ebx + 0x118], 0x50
jmp 0x548e36
mov word [ebx + 0x118], 0x51
cmp byte [ebx + 0x11c], 1
je 0x548e61
add word [ebx + 0x118], 4
jmp 0x548e61
test ecx, eax
je 0x548e58
mov word [ebx + 0x118], 0x4f
jmp 0x548e61
mov word [ebx + 0x118], 0x50
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x548e72
mov dword [esi + 0x14], 1
test dword [ebx + 0x12c], ecx
je 0x548e89
mov edx, dword [esi + 0x10]
mov eax, 0x7ffffe00
cmp edx, eax
jle 0x548e89
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x548ea8
mov eax, dword [ebx + 0x12c]
and eax, ecx
neg eax
sbb eax, eax
and eax, 0xffffe400
add eax, 0x2000
jmp 0x548ebc
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 0x548ed2
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 0x548f1f
lea edx, [ebp + 8]
push edx
push 0
push 0x54
call fcn.0053b7b0
add esp, 0xc
test eax, eax
je 0x548f14
push ebx
push eax
push eax
push 1
call fcn.00543100
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 0x548f36
test dword [ebx + 0x12c], 0x60000000
je 0x548f48
push esi
push ebx
call fcn.00533360
add esp, 8
test eax, eax
jne 0x5490ba
mov eax, dword [ebx + 0xb0]
lea esi, [ebx + 0x28]
push esi
push 0
push eax
call fcn.0053b7b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x548f6a
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 0x548fb4
cmp dword [ebx + 0x100], 7
jne 0x548fb4
mov edx, dword [ebx + 0xa8]
push edx
call fcn.005492d0
add esp, 4
or eax, edx
jne 0x548fb4
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 [0x595e68], 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