Function at 0x4147b0
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 0x414801
cmp dword [eax + 0x7c], esi
jne 0x414801
cmp dword [eax + 0x2c], esi
jne 0x414801
cmp dword [eax + 0x54], esi
jne 0x414801
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.00416c00
add esp, 0x10
cmp eax, esi
jne 0x41699a
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.0040bd10
add esp, 0xc
cmp eax, esi
jne 0x41699a
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 0x4148b8
xor edx, edx
mov dword [ebx + 0x90], 1
mov dword [ebx + 0x94], edx
jmp 0x4148ba
xor edx, edx
mov ecx, dword [ebp + 8]
mov edi, 2
cmp dword [ecx + 0x44], edx
je 0x4148fc
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 0x41490f
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.0x414920
mov esi, 0x40
jmp dword [ecx*4 + 0x4169a4]
test byte [ebx + 0x128], 2
je 0x41493c
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.0x414920.0
jmp 0x4149b9
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 0x4149b6
test byte [ebx + 0x128], 2
je 0x414995
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.0x4149ce
jmp dword [ecx*4 + 0x4169b4]
test byte [ebx + 0x128], 2
je 0x4149ea
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.0x4149ce.0
jmp 0x414a6f
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 0x414a6c
test byte [ebx + 0x128], 2
je 0x414a48
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.0x414a80
jmp dword [eax*4 + 0x4169c4]
mov eax, dword [ebx + 0x128]
or ah, 8
jmp 0x414ac1
mov eax, dword [ebx + 0x128]
or ah, 0x10
jmp 0x414ac1
mov eax, dword [ebx + 0x128]
or ah, 0x20
jmp 0x414ac1
mov eax, dword [ebx + 0x128]
test al, 2
je 0x414abe
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.0x414ad3
jmp dword [eax*4 + 0x4169d8]
test dword [ebx + 0x12c], 0x8000000
je case.0x414ad3.4
lea edx, [ebp - 0x150]
push 0x42d878
push edx
call fcn.004195a0
add esp, 8
test eax, eax
jne case.0x414ad3.4
mov eax, dword [ebx + 0x128]
or al, 0x20
mov dword [ebx + 0x128], eax
mov eax, dword [ebx + 0x128]
test al, 2
je 0x414b22
test dword [ebx + 0x12c], 0x8000000
je 0x414b32
test dword [ebx + 0x12c], 0x400000
je 0x414bec
or al, 8
mov dword [ebx + 0x128], eax
mov eax, dword [ebp - 8]
or al, 3
jmp 0x414bf1
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebp - 8]
or ecx, 8
or al, 3
mov dword [ebx + 0x128], ecx
jmp 0x414bf1
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x414930
test ah, 4
je 0x414b80
test dword [ebx + 0x12c], 0x8000000
je 0x414930
mov eax, dword [ebp - 8]
or al, 1
jmp 0x414bf1
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x414930
test ah, 4
je 0x414baa
test dword [ebx + 0x12c], 0x8000000
je 0x414930
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 0x414bf4
mov eax, dword [ebx + 0x128]
test al, 2
jne 0x414930
test ah, 4
je 0x414bec
test dword [ebx + 0x12c], 0x8000000
je 0x414930
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.0x414deb
jmp dword [eax*4 + 0x4169f0]
test byte [ebx + 0x128], 0x10
je case.0x414c03.0
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x128], 0x10
je case.0x414c03.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 0x414c4a
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 0x414c5e
or al, 0x40
jmp 0x414c65
cmp ecx, 6
jne case.0x414c03.0
or al, 0x80
mov dword [ebx + 0x128], eax
mov eax, dword [edx + 0x34]
cmp eax, 4
ja case.default.0x414c81
mov esi, 0x200
mov ecx, 0x20000000
jmp dword [eax*4 + 0x416a0c]
mov eax, dword [ebx + 0x128]
test ah, 0x30
jne 0x414ccd
or ah, 1
mov dword [ebx + 0x128], eax
jmp 0x414d22
mov eax, dword [ebx + 0x128]
test al, 0x10
je 0x414c5a
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x128]
test al, 0x10
je 0x414c63
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebx + 0x130], 0x2000
jne 0x414d07
or eax, esi
mov dword [ebx + 0x128], eax
jmp 0x414d22
mov eax, dword [ebx + 0x128]
or ah, 1
mov dword [ebx + 0x128], eax
jmp 0x414d22
mov eax, dword [ebx + 0x130]
test ah, 0x20
jne 0x414d07
or dword [ebx + 0x128], esi
jmp 0x414d22
mov eax, dword [ebx + 0x12c]
or eax, ecx
jmp 0x414d1c
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.0x414deb
jmp dword [eax*4 + 0x416a20]
mov eax, dword [ebx + 0x128]
test ah, 0x31
je case.0x414d37.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 0x414d93
jle 0x414d73
cmp eax, 3
jle 0x414ddf
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 0x414dba
mov eax, dword [ebx + 0x128]
test ah, 0x10
je 0x414dba
test ah, 1
je 0x414dba
mov byte [ebx + 0x11e], 2
jmp 0x414ddf
mov al, byte [ebx + 0x11c]
cmp al, 1
je 0x414dd8
cmp al, 4
je 0x414dd8
test dword [ebx + 0x128], esi
jne 0x414dd8
test ecx, 0x60000000
je 0x414ddf
mov byte [ebx + 0x11e], 3
mov eax, dword [edx + 0x40]
cmp eax, 3
ja case.default.0x414deb
jmp dword [eax*4 + 0x416a40]
mov ecx, dword [ebx + 0x128]
test ch, 0x20
jne 0x414e6b
mov byte [ebx + 0x11d], 1
jmp 0x414e72
mov ecx, dword [ebx + 0x128]
test ch, 0x10
je 0x414e2b
mov al, byte [ebx + 0x11c]
cmp al, 1
je 0x414e2b
test al, al
je 0x414e2b
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
test ch, 0x20
je 0x414dfd
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x128]
test ch, 0x20
je 0x414e53
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x11d], 2
jmp 0x414e72
mov ecx, dword [ebx + 0x128]
test ch, 0x14
jne 0x414930
mov byte [ebx + 0x11d], 3
mov al, byte [ebx + 0x11d]
cmp al, 2
je 0x414e81
test ch, 0x10
je 0x414e88
or dword [ebp - 4], 0x10000000
mov edi, dword [edx + 0x4c]
test edi, edi
jne 0x414eda
cmp al, 2
je 0x414ed3
cmp al, 3
je 0x414ed3
test ch, 0x30
jne 0x414ed3
test dword [ebx + 0x12c], 0x60000000
jne 0x414eca
test esi, ecx
je 0x414eb5
mov byte [ebx + 0x11c], 4
jmp 0x414eda
cmp byte [ebx + 0x11e], 3
setne dl
add edx, 5
mov byte [ebx + 0x11c], dl
jmp 0x414eda
mov byte [ebx + 0x11c], 5
jmp 0x414eda
mov byte [ebx + 0x11c], 1
cmp al, 2
je 0x414ee7
cmp al, 3
je 0x414ee7
test ch, 0x30
je 0x414efc
cmp byte [ebx + 0x11c], 1
je 0x414efc
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 0x414f26
test ch, 0xc
je 0x414f26
cmp byte [ebx + 0x11c], 5
je 0x414f26
pop edi
pop esi
mov eax, 0xc000002e
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 0x11c]
cmp al, 4
jne 0x414f45
cmp byte [ebx + 0x11e], 3
je 0x414f45
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 0x414f5f
test esi, 0x8000000
je 0x414f80
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 0x414fbb
dec ecx
je 0x414fd9
dec ecx
je 0x414faa
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 0x414fd9
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 0x4150bd
cmp al, 1
je 0x4150a1
mov ecx, dword [ebx + 0x128]
test ch, 0x10
jne 0x4150a1
test edx, edx
jne 0x41507f
test esi, 0x40000000
jne 0x41507f
test esi, 0x8000000
je 0x415036
test ch, 1
je 0x415036
mov eax, 0x400
or ch, 0x80
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0x128], ecx
jmp 0x41516f
test ch, 2
je 0x41505d
or ch, 0x80
mov dword [ebx + 0xb4], 0x800
mov dword [ebx + 0xb8], 0x1fe
mov dword [ebx + 0x128], ecx
jmp 0x41516f
or ch, 0x80
mov dword [ebx + 0xb4], 0x85
mov dword [ebx + 0xb8], 0x84
mov dword [ebx + 0x128], ecx
jmp 0x41516f
or ch, 0x80
mov dword [ebx + 0xb4], 0x400
mov dword [ebx + 0xb8], 0x10000
mov dword [ebx + 0x128], ecx
jmp 0x41516f
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 0x4150db
cmp edi, 1
jl 0x4150cf
cmp edi, 0xfffffffa
jbe 0x4150db
pop edi
pop esi
mov eax, 0xc0000245
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x4168f5
mov ecx, dword [ebx + 0x128]
mov dword [ebx + 0xb8], edi
test ch, 2
je 0x415108
test ecx, 0x1000000
jne 0x415108
mov edx, dword [ebp + 8]
cmp dword [edx + 0x78], 0
jne 0x415108
shl edi, 2
movsx edx, al
dec edx
cmp edx, 6
ja case.default.0x415111
jmp dword [edx*4 + 0x416a50]
add edi, 4
jmp case.0x415111.1
add edi, 8
jmp case.0x415111.1
test esi, 0x40000000
je case.0x415111.1
or ch, 0x80
mov edi, 0x400
mov dword [ebx + 0xb8], 0x10000
mov dword [ebx + 0x128], ecx
jmp case.0x415111.1
cmp byte [ebx + 0x11e], 3
jne case.0x415111.1
inc edi
jmp case.0x415111.1
push 0x5dc
push 0x42d880
push 2
push 0xc0000008
call fcn.00409670
add esp, 0x10
mov dword [ebx + 0xb4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
test eax, eax
je 0x415185
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 0x4151c0
mov ecx, dword [ebx + 0x128]
test ch, 1
jne 0x4151c0
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.0x4151c9
jmp dword [eax*4 + 0x416a6c]
mov byte [ebx + 0x121], 0
jmp 0x4151e9
mov byte [ebx + 0x121], 0x27
jmp 0x4151e9
mov byte [ebx + 0x121], 0x22
mov eax, dword [edx + 0x70]
test eax, eax
je 0x41521b
mov ecx, dword [ebx + 0x128]
test ch, 1
jne 0x41521b
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 0x415256
dec eax
je 0x415246
dec eax
je 0x415256
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 0x415270
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 0x4152b5
jle 0x415295
cmp eax, 3
jg 0x415295
mov eax, dword [ebx + 0x128]
test ah, 0x30
je 0x4152b5
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.0x4152c9
mov ecx, 0xfffffffb
jmp dword [eax*4 + 0x416a7c]
mov eax, dword [edx + 0x50]
test eax, eax
jne 0x4152e7
test dword [ebx + 0x12c], 0x8000000
je 0x415384
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x130]
or ecx, 4
or al, 1
mov dword [ebx + 0x128], ecx
jmp 0x41539c
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 0x4153a2
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 0x41539c
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 0x4153a2
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 0x4153ed
test ah, 0xc
jne 0x4153de
test ah, 0x10
je 0x4153c6
mov dword [ebx + 0x100], 2
jmp 0x415484
test ah, 0x20
je 0x415484
mov dword [ebx + 0x100], 8
jmp 0x415484
mov dword [ebx + 0x100], 3
jmp 0x415484
test ah, 2
jne 0x41543b
mov ecx, dword [ebx + 0x12c]
test ecx, 0x20000000
jne 0x41543b
test ecx, 0x40000000
je 0x415484
test ah, 0xc
jne 0x41542f
test ah, 0x10
je 0x41541e
mov dword [ebx + 0x100], 4
jmp 0x415484
test ah, 0x20
je 0x415484
mov dword [ebx + 0x100], 0xa
jmp 0x415484
mov dword [ebx + 0x100], 5
jmp 0x415484
test ah, 0xc
jne 0x415462
test ah, 0x10
je 0x415451
mov dword [ebx + 0x100], 6
jmp 0x415484
test ah, 0x20
je 0x415484
mov dword [ebx + 0x100], 9
jmp 0x415484
test dword [ebx + 0x12c], 0x20000000
je 0x41547a
mov dword [ebx + 0x100], 7
jmp 0x415484
mov dword [ebx + 0x100], 0xb
mov eax, dword [edx + 0x80]
test eax, eax
mov eax, dword [0x434a1c]
je 0x4154a3
test eax, eax
jne 0x4154a3
pop edi
pop esi
mov eax, 0xc0000232
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0x90]
test ecx, ecx
je 0x4154c8
test eax, eax
jne 0x4154bd
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 0x4154cb
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x415521
lea ecx, [ebp - 0x150]
push str.USER
push ecx
call fcn.004195a0
add esp, 8
test eax, eax
jne 0x415521
mov edx, dword [0x42d8ac]
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 0x415546
dec eax
je 0x41557e
dec eax
je 0x415551
pop edi
pop esi
mov eax, 0xc0000030
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x130]
test ah, 0x80
je 0x415584
mov eax, dword [ebx + 0x128]
test ah, 0x10
jne 0x41557e
lea edx, [ebp - 0x150]
push edx
push ebx
call fcn.00410300
add esp, 8
cmp eax, 0xffffffff
jne 0x41557e
mov eax, dword [ebx + 0x130]
or eax, 0x10000
jmp 0x415586
mov eax, dword [ebx + 0x130]
and eax, edi
push str.FORT_BUFFERED
mov dword [ebx + 0x130], eax
call fcn.0040f4e0
add esp, 4
test eax, eax
je 0x4155cc
mov eax, dword [ebx + 0x128]
test ah, 0x10
jne 0x4155be
cmp dword [ebx + 0x100], 1
je 0x4155be
mov eax, dword [ebx + 0x130]
or eax, 0x10000
jmp 0x4155c6
mov eax, dword [ebx + 0x130]
and eax, edi
mov dword [ebx + 0x130], eax
lea eax, [ebp - 0x150]
push eax
push ebx
call fcn.00410300
mov ecx, eax
add esp, 8
cmp ecx, 0xffffffff
mov dword [ebp - 0x30], ecx
je 0x415648
mov eax, dword [ebx + 0x100]
sub eax, 3
je 0x41561d
sub eax, 2
je 0x415627
mov eax, dword [ebx + 0x12c]
test eax, 0x8000000
je 0x415648
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 0x415648
mov eax, dword [ebx + 0x128]
mov dword [ebp - 8], 3
or al, 8
mov dword [ebx + 0x128], eax
mov eax, dword [0x434a1c]
test eax, eax
jne 0x415663
cmp ecx, 0xfffffffa
jne 0x4156a0
mov ecx, 1
mov dword [ebp - 0x30], ecx
jmp 0x415778
cmp ecx, 0xfffffffa
je 0x4156a0
cmp ecx, 1
je 0x41567d
test esi, esi
je 0x41567d
pop edi
pop esi
mov eax, 0xc0000234
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0xfffffffa
je 0x4156a0
cmp ecx, 1
je 0x4156a0
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x80]
test edx, edx
je 0x4156a3
pop edi
pop esi
mov eax, 0xc0000232
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
cmp ecx, 0xfffffffc
jne 0x415774
cmp word [ebx + 0x11a], 4
jge 0x4156e1
mov ecx, dword [ebx + 0x50]
lea edi, [ebx + 0x50]
push ecx
call fcn.0040bd80
add esp, 4
test eax, eax
jne 0x41699a
push edi
push eax
push 5
call fcn.0040bd10
add esp, 0xc
test eax, eax
jne 0x41699a
mov al, byte [0x42d8c4]
mov edx, dword [str.COM1]
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 [0x434a1c]
test eax, eax
je 0x415896
cmp ecx, 0xfffffffa
jne 0x415896
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 0x4157b3
mov ecx, dword [edi + 0x84]
test ecx, ecx
jne 0x4157b3
and al, 0x7f
jmp 0x4157b5
test ecx, ecx
jl 0x41572e
cmp dword [ebx + 0x100], 1
jne 0x415896
cmp ecx, 1
je 0x415797
cmp ecx, 2
je 0x415797
test ecx, ecx
jne 0x415896
mov ecx, dword [ebx + 0x130]
and eax, 1
shl eax, 6
and ecx, 0xffffffbf
or eax, ecx
mov dword [ebx + 0x130], eax
jmp 0x415896
or al, 0x80
test esi, esi
mov dword [ebx + 0x130], eax
jne 0x4157c4
mov esi, 0x100
lea edx, [ebp - 0x2c]
lea eax, [esi + 1]
push edx
push 0
push eax
call fcn.0040bd10
add esp, 0xc
test eax, eax
jne 0x41699a
mov eax, dword [edi + 0x94]
test eax, eax
jne 0x415802
mov ecx, dword [ebx + 0xbc]
mov edx, dword [ebp - 0x2c]
push ecx
push str.Unit__i
push edx
call fcn.00418efb
add esp, 0xc
jmp 0x41581d
mov eax, dword [edi + 0x90]
mov ecx, dword [ebp - 0x2c]
push esi
push eax
push ecx
call fcn.00419020
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov byte [edx + esi], 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00418740
add esp, 4
cmp eax, 0xffffffff
mov dword [ebx + 0xa8], eax
jne 0x415854
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 0x415882
push eax
call fcn.00418740
mov ecx, dword [ebx + 0xa8]
push ecx
call fcn.00418740
add esp, 8
test eax, eax
jne 0x415882
pop edi
pop esi
mov eax, 0xc000028e
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040bd80
add esp, 4
test eax, eax
jne 0x41699a
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
je 0x415936
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x415913
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 0x415930
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 0x415a33
mov eax, dword [ebx + 0x128]
test eax, 0x400000
jne 0x415a33
test al, 2
jne 0x415a33
test byte [ebx + 0x12c], 0x40
jne 0x415a33
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x415a33
call edi
cmp eax, 5
je 0x415998
cmp eax, 0x13
je 0x415998
test dword [ebx + 0x12c], 0x8000000
je 0x415a33
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 0x415a13
test dword [ebx + 0x12c], 0x8000000
je 0x415a13
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 0x415a2d
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 0x415ada
call edi
lea esi, [eax - 2]
cmp esi, 0xcc
ja case.0x415a5b.8
xor ecx, ecx
mov cl, byte [esi + 0x416ab0]
jmp dword [ecx*4 + 0x416a94]
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 [0x434a1c]
test eax, eax
je 0x415b00
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x415af9
test eax, eax
je 0x415af9
cmp eax, 2
je 0x415af9
cmp eax, 0xfffffffa
jne 0x415b00
mov eax, 2
jmp 0x415b07
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov cl, byte [ebx + 0x11e]
test cl, cl
jne 0x415bde
cmp byte [ebx + 0x11c], 1
jne 0x415b4a
test dword [ebx + 0x12c], 0x8000000
je 0x415b3e
mov ecx, dword [ebx + 0x128]
test ch, 0x10
je 0x415b3e
test ch, 1
jne 0x415bd7
mov byte [ebx + 0x11e], 3
jmp 0x415bde
mov ecx, dword [ebx + 0x130]
test ecx, 0x600000
je 0x415b88
mov edx, dword [ebx + 0xbc]
cmp edx, 6
je 0x415b6d
cmp edx, 0xffffffff
je 0x415b6d
cmp edx, 0xfffffffe
jne 0x415b88
shr ecx, 0x15
and ecx, 3
dec ecx
je 0x415bad
dec ecx
je 0x415bd7
dec ecx
je 0x415b3e
pop edi
pop esi
mov eax, 0xc0000030
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebx + 0x12c], 0x8000000
je 0x415bb6
cmp dword [ebx + 0x100], 1
je 0x415bad
mov ecx, dword [ebx + 0x128]
test ch, 1
je 0x415bd7
cmp eax, 2
jne 0x415bd7
mov byte [ebx + 0x11e], 1
jmp 0x415bde
mov ecx, dword [ebx + 0x128]
test ch, 1
je 0x415bd7
cmp eax, 2
jne 0x415bd7
test ecx, 0x400000
je 0x415bd7
mov byte [ebx + 0x11e], 1
jmp 0x415bde
mov byte [ebx + 0x11e], 2
mov cl, byte [ebx + 0x11e]
cmp cl, 3
je 0x415bf8
cmp byte [ebx + 0x11c], 1
je 0x415bf8
inc dword [ebx + 0xb4]
cmp cl, 1
jne 0x415c0d
cmp byte [ebx + 0x11c], 1
je 0x415c0d
add dword [ebx + 0xb4], 5
mov ecx, dword [ebx + 0x128]
test ecx, 0x400000
je 0x415c2f
test ch, 0x10
je 0x415c2f
cmp byte [ebx + 0x11d], 2
jne 0x415c2f
inc dword [ebx + 0xb4]
test dword [ebx + 0x12c], 0x8000000
je 0x415c4c
test ch, 0x10
je 0x415c4c
test ch, 1
je 0x415c4c
add dword [ebx + 0xb4], 2
cmp eax, 1
jne 0x415c59
or ecx, 0x800000
jmp 0x415c5f
and ecx, 0xff7fffff
mov eax, ecx
mov dword [ebx + 0x128], ecx
test ah, 1
mov esi, 0xfff7ffff
je 0x415d33
push ebx
call fcn.00410460
add esp, 4
test eax, eax
jne 0x41699a
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x415d33
xor ecx, ecx
mov cl, byte [eax + 0x1e]
test ecx, ecx
je 0x415d33
mov edi, dword [eax + 0xc]
test byte [edi + 0x12c], 4
je 0x415cdb
cmp byte [edi + 0x11e], 1
jne 0x415cdb
mov eax, dword [edi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x415cc4
mov byte [eax + 5], 0x24
jmp 0x415ccd
cmp cl, 0x2b
jne 0x415ccd
mov byte [eax + 5], 0
mov eax, dword [edi + 0x12c]
and al, 0xfb
mov dword [edi + 0x12c], eax
push edi
call fcn.0040c230
mov ecx, dword [ebx + 0x7c]
add esp, 4
test ecx, ecx
je 0x415cef
mov byte [ecx + 0x1e], 0
test eax, eax
je 0x415d07
push edi
push eax
push eax
push 1
call fcn.004096a0
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 0x415d51
test eax, 0x800000
jne 0x415d51
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.0x415db7
mov edx, dword [ebp + 8]
cmp dword [edx + 0x54], 5
jne 0x415da8
mov eax, dword [ebx + 0xa8]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x415d89
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 0x415da8
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.0x415db7
jmp dword [eax*4 + 0x416b80]
or dword [ebx + 0x12c], 0x80000
jmp case.default.0x415db7
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.0x415db7
mov eax, dword [ecx + 0x54]
mov edi, 5
cmp eax, edi
jne 0x415e36
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.0x415db7
test dword [ebx + 0x128], 0x800000
je case.default.0x415db7
mov ecx, dword [ebx + 0xa8]
mov esi, 2
push esi
push 0
push 0
push ecx
call fcn.0040d1a0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x415e95
mov edx, dword [ebx + 0xa8]
push edx
call fcn.00416bb0
add esp, 4
or eax, edx
je case.default.0x415db7
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.0x415db7
mov al, byte [ebx + 0x11c]
movsx ecx, al
dec ecx
cmp ecx, 6
ja case.default.0x415eeb
jmp dword [ecx*4 + 0x416b90]
mov eax, dword [ebx + 0xa8]
push eax
call fcn.00416bb0
mov ecx, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff7
push ecx
mov edi, eax
mov esi, edx
call fcn.0040d1a0
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x4165ac
sub edi, eax
sbb esi, edx
cmp edi, 9
jne 0x4165ac
test esi, esi
jne 0x4165ac
test byte [ebx + 0x12c], 0x40
je 0x415fcf
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x415fcf
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 0x415f8d
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.0040d1a0
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.0040d1a0
add esp, 0x10
jmp 0x415fea
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 0x415f75
cmp dword [ebp + 0xc], 9
je 0x416006
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x4165b9
test byte [ebx + 0x12c], 2
je 0x416043
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 0x416075
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.0x415db7
cmp byte [ebp - 0x20], 0x1a
jne case.default.0x415db7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff7
jmp 0x416591
cmp al, 7
mov dword [ebp - 0xc], 3
jne 0x4160a7
cmp byte [ebx + 0x11e], 3
je 0x4160c0
cmp al, 5
jne 0x4160c3
mov al, byte [ebx + 0x11e]
cmp al, 3
jne 0x4160bc
mov dword [ebp - 0xc], 1
cmp al, 2
jne 0x4160c3
mov dword [ebp - 0xc], esi
mov edx, dword [ebx + 0xa8]
push edx
call fcn.00416bb0
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.0040d1a0
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x4165ac
mov ecx, dword [ebp - 0xc]
sub edi, eax
sbb esi, edx
xor eax, eax
cmp edi, ecx
jne 0x4165ac
cmp esi, eax
jne 0x4165ac
test byte [ebx + 0x12c], 0x40
je 0x4161ed
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x4161ed
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 0x4161a5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x20
mov dword [ebx + 0xac], eax
jne 0x415f81
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
call fcn.0040d1a0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4165cc
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.0040d1a0
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.0040d1a0
add esp, 0x10
jmp 0x41620a
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 0x415f75
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
cmp edx, eax
je 0x41622e
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x4165b9
cmp byte [ebp - 0x24], 0x1a
jne case.default.0x415db7
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
push 1
push ecx
push edx
jmp 0x416591
mov edx, dword [ebx + 0xa8]
push edx
call fcn.00416bb0
mov edi, eax
mov eax, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push eax
mov esi, edx
call fcn.0040d1a0
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x415ff4
sub edi, eax
sbb esi, edx
cmp edi, 4
jne 0x415ff4
test esi, esi
jne 0x415ff4
test byte [ebx + 0x12c], 0x40
je 0x41630b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x41630b
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 0x415f75
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push edi
call fcn.0040d1a0
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.0040d1a0
add esp, 0x10
jmp 0x416326
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 0x415f75
cmp dword [ebp + 0xc], 4
je 0x416346
mov eax, dword [ebx + 0xa8]
push 2
push 0
push 0
push eax
jmp 0x4165b9
xor ecx, ecx
mov ch, byte [ebp - 0x23]
mov cl, byte [ebp - 0x24]
cmp cx, 1
jne case.default.0x415db7
cmp byte [ebp - 0x22], 0x1a
jne case.default.0x415db7
mov edx, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffc
push edx
jmp 0x416598
mov ecx, dword [ebx + 0xa8]
mov dword [ebp - 0xc], 1
push ecx
call fcn.00416bb0
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.0040d1a0
mov ecx, eax
add esp, 0x14
and ecx, edx
cmp ecx, 0xffffffff
je 0x4165ac
mov ecx, dword [ebx + 0xb4]
sub edi, eax
sbb esi, edx
xor eax, eax
cmp edi, ecx
jne 0x4165ac
cmp esi, eax
jne 0x4165ac
lea edx, [ebp - 0x18]
push edx
push eax
push ecx
call fcn.0040bd10
add esp, 0xc
test eax, eax
jne 0x41699a
test byte [ebx + 0x12c], 0x40
je 0x416480
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x416480
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 0x415f75
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.0040d1a0
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.0040d1a0
add esp, 0x10
jmp 0x4164a0
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 0x415f75
mov edx, dword [ebx + 0xb4]
mov eax, dword [ebp + 0xc]
cmp eax, edx
je 0x416527
mov edx, dword [ebx + 0xa8]
push 2
push 0
push 0
push edx
call fcn.0040d1a0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x415e7d
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.0040bd80
add esp, 4
test eax, eax
je case.default.0x415db7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x128]
test ah, 2
jne 0x416542
test dword [ebx + 0x12c], 0x60000000
jne 0x416542
mov cl, 0x20
jmp 0x416544
xor cl, cl
mov edi, dword [ebp - 0x18]
cmp byte [edi], 0x1a
je 0x416550
xor esi, esi
jmp 0x416566
lea eax, [edi + 1]
lea esi, [edx + edi]
cmp eax, esi
jae 0x416563
cmp byte [eax], cl
jne 0x41654c
inc eax
cmp eax, esi
jb 0x41655a
mov esi, dword [ebp - 0xc]
push edi
call fcn.0040bd80
add esp, 4
test eax, eax
jne 0x41699a
test esi, esi
je case.default.0x415db7
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.0040d1a0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne case.default.0x415db7
jmp 0x415f75
mov ecx, dword [ebx + 0xa8]
push 2
push 0
push 0
push ecx
call fcn.0040d1a0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x415e7d
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.0x415db7
push 0xc7c
push 0x42d8d0
push esi
push 0xc0000008
call fcn.00409670
add esp, 0x10
mov eax, dword [ebx + 0x128]
test ah, 4
je 0x41669b
test eax, 0x800000
je 0x41669b
mov edx, dword [ebx + 0xa8]
push 2
push 0
push 0
push edx
call fcn.0040d1a0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x415e7d
cmp dword [ebx + 0x100], 7
jne 0x416676
mov eax, dword [ebx + 0xa8]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.0040d1a0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x415e7d
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 0x4166ce
test eax, 0x800000
je 0x4166ce
mov edx, dword [ebx + 0x12c]
mov ecx, 0x8000000
test ecx, edx
je 0x4166c1
test ah, 0x10
jne 0x4166d3
or eax, 0x80000000
mov dword [ebx + 0x128], eax
jmp 0x4166d3
mov ecx, 0x8000000
mov eax, dword [ebx + 0x128]
test ah, 0x80
jne 0x4166ee
mov dx, word [ebx + 0xb4]
mov word [ebx + 0x118], dx
jmp 0x416741
mov al, byte [ebx + 0x11e]
cmp al, 1
mov eax, dword [ebx + 0x12c]
jne 0x416729
test ecx, eax
je 0x41670d
mov word [ebx + 0x118], 0x50
jmp 0x416716
mov word [ebx + 0x118], 0x51
cmp byte [ebx + 0x11c], 1
je 0x416741
add word [ebx + 0x118], 4
jmp 0x416741
test ecx, eax
je 0x416738
mov word [ebx + 0x118], 0x4f
jmp 0x416741
mov word [ebx + 0x118], 0x50
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x416752
mov dword [esi + 0x14], 1
test dword [ebx + 0x12c], ecx
je 0x416769
mov edx, dword [esi + 0x10]
mov eax, 0x7ffffe00
cmp edx, eax
jle 0x416769
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x416788
mov eax, dword [ebx + 0x12c]
and eax, ecx
neg eax
sbb eax, eax
and eax, 0xffffe400
add eax, 0x2000
jmp 0x41679c
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 0x4167b2
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 0x4167ff
lea edx, [ebp + 8]
push edx
push 0
push 0x54
call fcn.0040bd10
add esp, 0xc
test eax, eax
je 0x4167f4
push ebx
push eax
push eax
push 1
call fcn.004096a0
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 0x416816
test dword [ebx + 0x12c], 0x60000000
je 0x416828
push esi
push ebx
call fcn.0040fd20
add esp, 8
test eax, eax
jne 0x41699a
mov eax, dword [ebx + 0xb0]
lea esi, [ebx + 0x28]
push esi
push 0
push eax
call fcn.0040bd10
mov edi, eax
add esp, 0xc
test edi, edi
je 0x41684a
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 0x416894
cmp dword [ebx + 0x100], 7
jne 0x416894
mov edx, dword [ebx + 0xa8]
push edx
call fcn.00416bb0
add esp, 4
or eax, edx
jne 0x416894
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 [0x4349f8], 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