Function at 0x43f228
Capabilities:
Check if file exists
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, 0x174
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], 1
test byte [edx + 0x168], 4
je 0x43f270
cmp dword [ebx + 0x80], 0
jne 0x43f270
cmp dword [ebx + 0x2c], 0
je 0x441950
cmp dword [ebx + 0xa4], 0
je 0x43f282
mov byte [ebp - 0x13c], 0
jmp 0x43f2c9
mov esi, dword [ebx + 0x58]
mov edx, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x38], esi
lea esi, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov edi, dword [ebx + 0x2c]
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x38]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], edi
call fcn.0043dedc
test eax, eax
je 0x43f2c9
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x13c]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43f2e6
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43f2d1
dec eax
mov edx, dword [ebp - 4]
movsx esi, ax
add esi, 0xa
mov word [edx + 0x152], ax
lea ecx, [edx + 0x60]
push ecx
push 0
push esi
mov dword [ebp - 0x158], ecx
call fcn.0041d7e0
add esp, 0xc
test eax, eax
je 0x43f31c
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
lea edi, [ebp - 0x13c]
mov esi, dword [eax + 0x60]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x43f328
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
or edx, dword [eax + 0x9c]
jne 0x43f357
mov dword [eax + 0x98], 1
mov dword [eax + 0x9c], 0
cmp dword [ebx + 0x44], 0
je 0x43f37b
or byte [eax + 0x169], 0x40
or dword [ebp - 0x14], 0x80
or dword [ebp - 0x20], 0x80000000
or byte [eax + 0x16f], 0x10
jmp 0x43f389
or dword [ebp - 0x14], 0x80
or dword [ebp - 0x20], 0xc0000000
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x4426c1
cmp eax, 2
je 0x43f438
cmp eax, 1
jne 0x43f3d4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x15c], 0
or byte [eax + 0x169], 0x40
mov edx, dword [ebp - 0x20]
and edx, 0x3fffffff
or edx, 0x80000000
or dword [ebp - 0x14], 0x80
mov dword [ebp - 0x20], edx
jmp 0x43f45e
cmp eax, 3
jne 0x43f415
mov eax, dword [ebp - 4]
test byte [eax + 0x169], 0x40
jne 0x43f5db
mov dword [ebp - 0x15c], 0
or byte [eax + 0x16e], 1
mov edx, dword [ebp - 0x20]
and edx, 0x7fffffff
or edx, 0x40000000
or dword [ebp - 0x14], 0x80
mov dword [ebp - 0x20], edx
jmp 0x43f45e
mov edx, dword [ebp - 4]
mov eax, 0x2ed
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x43f434
mov eax, 0x30
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test byte [eax + 0x169], 0x40
jne 0x43f5db
xor eax, eax
or dword [ebp - 0x14], 0x80
or dword [ebp - 0x20], 0xc0000000
mov dword [ebp - 0x15c], eax
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x43f536
cmp eax, 2
je 0x43f510
cmp eax, 1
jne 0x43f4ac
mov eax, dword [ebp - 4]
mov dword [ebp - 0x15c], 0
or byte [eax + 0x169], 0x40
mov edx, dword [ebp - 0x20]
and edx, 0x3fffffff
or edx, 0x80000000
or dword [ebp - 0x14], 0x80
mov dword [ebp - 0x20], edx
jmp 0x43f536
cmp eax, 3
jne 0x43f4ed
mov eax, dword [ebp - 4]
test byte [eax + 0x169], 0x40
jne 0x43f5db
mov dword [ebp - 0x15c], 0
or byte [eax + 0x16e], 1
mov edx, dword [ebp - 0x20]
and edx, 0x7fffffff
or edx, 0x40000000
or dword [ebp - 0x14], 0x80
mov dword [ebp - 0x20], edx
jmp 0x43f536
mov edx, dword [ebp - 4]
mov eax, 0x23b
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x43f50c
mov eax, 0x30
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test byte [eax + 0x169], 0x40
jne 0x43f5db
xor eax, eax
or dword [ebp - 0x14], 0x80
or dword [ebp - 0x20], 0xc0000000
mov dword [ebp - 0x15c], eax
mov eax, dword [ebx]
cmp eax, 5
ja case.default.0x43f541
jmp dword [eax*4 + 0x4e6b98]
mov eax, dword [ebp - 4]
or byte [eax + 0x16b], 4
and byte [eax + 0x168], 0x7b
jmp case.0x43f541.0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x16b]
or eax, 0x10
mov byte [edx + 0x16b], al
jmp 0x43f5b8
mov eax, dword [ebp - 4]
test byte [eax + 0x169], 0x40
jne 0x43f5db
mov edx, eax
movzx eax, byte [edx + 0x16b]
or eax, 3
mov byte [edx + 0x16b], al
jmp 0x43f5b8
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x16b]
or eax, 8
mov byte [edx + 0x16b], al
jmp 0x43f5b8
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x16b]
or eax, 2
mov byte [edx + 0x16b], al
mov edx, dword [ebx + 0x58]
cmp edx, 5
ja case.default.0x43f5c4
jmp dword [edx*4 + 0x4e6bb0]
test al, 1
je 0x43f5ed
mov eax, dword [ebp - 4]
test byte [eax + 0x168], 4
jne 0x43f5ed
mov eax, 0x2e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
or dword [ebp - 0x18], 2
or dword [ebp - 0x14], 0x4000002
or byte [eax + 0x16a], 4
jmp 0x43f69c
test al, 1
je 0x43f629
mov eax, dword [ebp - 4]
test byte [eax + 0x168], 4
jne 0x43f629
mov eax, 0x2e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
or dword [ebp - 0x18], 1
jmp 0x43f69c
mov eax, dword [ebp - 4]
or byte [eax + 0x16a], 2
or dword [ebp - 0x18], 3
jmp 0x43f69c
mov eax, dword [ebp - 4]
test byte [eax + 0x168], 4
je case.0x43f5c4.4
push str.USER
lea eax, [ebp - 0x13c]
push eax
call fcn.0047dfe0
add esp, 8
test eax, eax
jne case.0x43f5c4.4
mov eax, dword [ebp - 4]
or byte [eax + 0x16a], 8
mov eax, dword [ebp - 4]
test byte [eax + 0x169], 0x40
je 0x43f682
test byte [eax + 0x168], 4
je 0x43f68b
test byte [eax + 0x16f], 0x10
je case.0x43f5c4.5
or byte [eax + 0x16a], 2
or dword [ebp - 0x18], 3
jmp 0x43f69c
or dword [ebp - 0x18], 4
mov eax, dword [ebx + 0x28]
cmp eax, 6
ja case.default.0x43f80e
jmp dword [eax*4 + 0x4e6bc8]
mov eax, dword [ebp - 4]
test byte [eax + 0x16a], 4
je case.0x43f6a8.2
mov eax, 0x2e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16a]
test al, 4
jne 0x43f5db
mov edx, dword [ebp - 4]
or eax, 0x20
mov byte [edx + 0x16a], al
jmp case.0x43f6a8.0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16a]
test al, 4
jne 0x43f5db
mov edx, dword [ebp - 4]
or eax, 0x10
mov byte [edx + 0x16a], al
jmp case.0x43f6a8.0
mov eax, dword [ebp - 4]
test byte [eax + 0x169], 0x40
jne 0x43f5db
mov edx, eax
movzx eax, byte [edx + 0x16a]
or eax, 8
mov byte [edx + 0x16a], al
mov edx, dword [ebx + 0x28]
cmp edx, 5
jne 0x43f748
mov edx, dword [ebp - 4]
or eax, 0x10
mov byte [edx + 0x16a], al
jmp case.0x43f6a8.0
cmp edx, 6
jne case.0x43f6a8.0
mov edx, dword [ebp - 4]
or eax, 0x20
mov byte [edx + 0x16a], al
jmp case.0x43f6a8.0
mov eax, dword [ebp - 4]
test byte [eax + 0x16a], 4
je case.0x43f6a8.0
mov eax, 0x2e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x34]
cmp eax, 4
ja case.default.0x43f785
jmp dword [eax*4 + 0x4e6be4]
mov eax, dword [ebp - 4]
or byte [eax + 0x170], 2
jmp 0x43f7f7
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x168]
test edx, 0x80
jne 0x43f7b3
or byte [eax + 0x16a], 0x80
jmp 0x43f7f7
or byte [eax + 0x170], 1
jmp 0x43f7f7
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16b]
test al, 8
jne 0x43f7d2
test al, 0x10
jne 0x43f7d2
test al, 4
je case.0x43f785.1
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x168]
test edx, 0x80
jne 0x43f7b3
or byte [eax + 0x16a], 0x80
jmp 0x43f7f7
mov eax, dword [ebp - 4]
or byte [eax + 0x16a], 0x40
mov edx, eax
mov eax, dword [ebx + 0x4c]
mov byte [edx + 0x154], al
mov edx, dword [ebx + 0x4c]
cmp edx, 8
ja case.default.0x43f80e
jmp dword [edx*4 + 0x4e6bf8]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 0x16b]
test dl, 8
jne 0x43f83a
test dl, 0x10
jne 0x43f83a
test dl, 4
jne 0x43f83a
mov edx, dword [ebp - 4]
test byte [edx + 0x16a], 0x40
je case.0x43f80e.0
mov eax, 0x2e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov byte [eax + 0x154], 4
mov eax, 4
jmp case.0x43f80e.0
mov edx, dword [ebp - 4]
test byte [edx + 0x16b], 4
je case.0x43f80e.0
mov eax, 0x2e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0x18]
mov byte [ecx + 0x156], dl
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x44263e
cmp edx, 1
je 0x43f8f3
cmp edx, 2
jne 0x43f8cc
mov edx, ecx
test byte [edx + 0x16b], 4
jne 0x43f5db
test byte [edx + 0x16a], 0x40
je 0x43f902
movsx edx, al
cmp edx, 5
jl 0x43f902
cmp edx, 8
jg 0x43f902
mov edx, ecx
mov byte [edx + 0x156], 3
jmp 0x43f902
cmp edx, 3
je 0x43f902
mov edx, ecx
mov eax, 0x2f2
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x43f8ef
mov eax, 0x30
mov esp, ebp
pop ebp
ret
mov edx, ecx
test byte [edx + 0x16b], 4
jne 0x43f5db
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x442617
cmp edx, 1
je 0x43f980
cmp edx, 2
jne 0x43f933
mov eax, dword [ebp - 4]
test byte [eax + 0x16b], 0x10
jne 0x43f5db
mov byte [eax + 0x155], 2
jmp 0x43f9ce
cmp edx, 3
jne case.default.0x43f80e
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 0x16b]
test dl, 8
jne 0x43f5db
test dl, 1
jne 0x43f5db
test dl, 4
jne 0x43f5db
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x155], 3
mov ecx, 3
jmp 0x43f9c5
mov eax, 0x30
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 0x16b]
test dl, 8
je 0x43f9ad
movsx ecx, al
cmp ecx, 1
je 0x43f9ad
test ecx, ecx
je 0x43f9ad
mov eax, 0x2e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
test dl, 0x10
jne 0x43f5db
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x155], 1
mov ecx, 1
test dl, 8
je 0x43faa3
push str.FOR_DO_NOT_CACHE_DIRECT_FILE
call fcn.00476d50
add esp, 4
test eax, eax
je 0x43fa8b
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x100]
movsx edx, byte [eax]
cmp edx, 0x20
mov dword [ebp - 0x164], ecx
jne 0x43fa03
inc eax
movsx edx, byte [eax]
cmp edx, 0x20
je 0x43f9fa
mov ecx, eax
je 0x43fa17
movsx edx, byte [eax]
test edx, edx
je 0x43fa17
inc ecx
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x43fa0a
push 0x4e6c74
push eax
mov byte [ecx], 0
call fcn.00480740
add esp, 8
mov esi, eax
test esi, esi
je 0x43fa8b
mov dword [ebp - 0x160], ebx
mov ebx, dword [ebp - 0x164]
push 0x2d
push esi
call fcn.0047da20
mov edi, eax
add esp, 8
test edi, edi
je 0x441989
push esi
mov byte [edi], 0
call fcn.004808d0
inc edi
mov esi, eax
push edi
call fcn.004808d0
add esp, 8
cmp ebx, esi
jl 0x43fa70
cmp ebx, eax
jle 0x441966
push 0x4e6c74
push 0
call fcn.00480740
add esp, 8
mov esi, eax
test esi, esi
jne 0x43fa3a
mov ebx, dword [ebp - 0x160]
mov edx, dword [ebp - 4]
or dword [ebp - 0x14], 0x10000000
movsx eax, byte [edx + 0x154]
movsx ecx, byte [edx + 0x155]
cmp dword [ebx + 0x4c], 0
jne 0x43fb54
cmp ecx, 3
je 0x43facb
cmp ecx, 2
je 0x43facb
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x16b]
test dl, 8
jne 0x43facb
test dl, 0x10
je 0x43fadc
mov eax, dword [ebp - 4]
mov byte [eax + 0x154], 1
mov eax, 1
jmp 0x43fb54
movzx eax, byte [eax + 0x170]
test al, 1
jne 0x43fb06
test al, 2
jne 0x43fb06
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16a]
and eax, 0x80
shr eax, 7
test dl, 4
je 0x43fb17
test eax, eax
je 0x43fb2c
mov eax, dword [ebp - 4]
mov byte [eax + 0x154], 5
mov eax, 5
jmp 0x43fb6d
test eax, eax
je 0x43fb2c
mov eax, dword [ebp - 4]
mov byte [eax + 0x154], 4
mov eax, 4
jmp 0x43fb6d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x156], 3
je 0x43fb46
mov byte [eax + 0x154], 8
mov eax, 8
jmp 0x43fb6d
mov byte [eax + 0x154], 5
mov eax, 5
jmp 0x43fb6d
cmp ecx, 3
je 0x43fb72
cmp ecx, 2
je 0x43fb72
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 0x16b]
test dl, 8
jne 0x43fb72
test dl, 0x10
je 0x43fb8c
movsx edx, al
cmp edx, 1
je 0x43fb8f
mov eax, 0x2e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
movsx edx, al
mov eax, dword [ebp - 4]
test byte [eax + 0x170], 1
je 0x43fbc1
movzx eax, byte [eax + 0x16b]
test al, 1
jne 0x43fbaa
test al, 2
je 0x43fbc1
cmp edx, 5
je 0x43fbca
mov eax, 0x2e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
cmp edx, 4
je 0x4425f5
or dword [ebp - 0x1c], 1
cmp dword [ebx + 0x54], 0
jne 0x43fbe0
mov eax, dword [ebp - 4]
test byte [eax + 0x168], 4
je 0x43fc01
mov eax, dword [ebp - 4]
mov dword [ebp - 0x160], 0
or byte [eax + 0x16a], 1
and byte [eax + 0x170], 0xfb
or dword [ebp - 0x1c], 2
jmp 0x43fc0b
mov dword [ebp - 0x160], 1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x43fc4b
cmp eax, 1
je 0x43fc3f
cmp eax, 2
je 0x43fc55
mov edx, dword [ebp - 4]
mov eax, 0x23d
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x43fc3b
mov eax, 0x30
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16b]
jmp 0x43fc68
cmp dword [ebp - 0x34], 0
je 0x4425ce
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x16b]
or eax, 0x20
mov byte [edx + 0x16b], al
and eax, 4
mov edx, dword [ebx + 0x48]
shr eax, 2
mov dword [ebp - 0x164], edx
test edx, edx
je 0x43fc91
test eax, eax
je 0x43fcf8
mov eax, 0x70
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x43fe50
mov eax, dword [ebp - 4]
test byte [eax + 0x16a], 0x40
je 0x43fcc7
mov eax, dword [0x50c7e4]
cmp eax, 0xfffffffe
mov dword [ebp - 0x164], eax
je 0x44274c
cmp dword [ebp - 0x164], 0xffffffff
jne 0x43fce8
jmp 0x43fe50
mov eax, dword [0x50c7e8]
cmp eax, 0xfffffffe
mov dword [ebp - 0x164], eax
je 0x44273a
cmp dword [ebp - 0x164], 0xffffffff
je 0x43fe50
mov dword [ebx + 0x48], eax
cmp dword [ebp - 0x164], 0
je 0x43fe50
mov eax, dword [ebp - 4]
test byte [eax + 0x168], 4
je 0x43fd37
cmp dword [ebp - 0x164], 0
jle 0x43fd25
mov ecx, 0xfffffffa
xor esi, esi
mov eax, dword [ebp - 0x164]
cdq
sub eax, ecx
sbb edx, esi
jl 0x43fd44
or eax, edx
je 0x43fd44
mov eax, 0x245
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x164], 0
jle 0x442728
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x164]
mov dword [edx + 0xfc], eax
movzx edx, byte [edx + 0x16a]
and edx, 0x80
shr edx, 7
test edx, edx
je 0x43fd8e
mov eax, dword [ebp - 4]
test byte [eax + 0x16c], 0x10
jne 0x43fd8e
mov ecx, dword [ebp - 0x164]
cmp dword [ebx + 0x7c], 0
lea eax, [ecx*4]
jne 0x43fd88
mov ecx, eax
mov dword [ebp - 0x164], ecx
mov eax, dword [ebp - 4]
movsx eax, byte [eax + 0x154]
dec eax
cmp eax, 7
ja case.default.0x43fda2
jmp dword [eax*4 + 0x4e6c1c]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x164]
cmp byte [eax + 0x156], 3
lea edx, [ecx + 1]
jne 0x43fdc0
mov ecx, edx
mov dword [ebp - 0x164], ecx
jmp case.0x43fda2.1
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 0x16b]
test byte [ecx + 0x170], 2
jne 0x43fde3
test al, 4
je case.0x43fda2.1
test edx, edx
je case.0x43fda2.1
mov edx, ecx
or eax, 0xffffff80
mov dword [ebp - 0x164], 0x400
mov dword [edx + 0xfc], 0x10000
mov byte [edx + 0x16b], al
jmp case.0x43fda2.1
mov eax, dword [ebp - 0x164]
add eax, 4
mov dword [ebp - 0x164], eax
jmp case.0x43fda2.1
mov eax, dword [ebp - 0x164]
add eax, 8
mov dword [ebp - 0x164], eax
jmp case.0x43fda2.1
push 0x6c2
push str.for_nt_open_proc.c
push 2
push 8
call fcn.0041aca0
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x164]
mov dword [edx + 0xf8], eax
jmp 0x43ff5c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x154], 1
je 0x43fe6f
mov esi, eax
movzx eax, byte [esi + 0x16b]
test al, 8
mov dword [ebp - 0x164], eax
je 0x43fe92
mov edx, dword [ebp - 4]
mov eax, 0x241
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x43fe8e
mov eax, 0x25
mov esp, ebp
pop ebp
ret
mov eax, esi
movzx eax, byte [eax + 0x170]
test al, 1
jne 0x43fec4
test al, 2
jne 0x43fec4
mov eax, esi
mov ecx, dword [ebp - 0x164]
and ecx, 4
shr ecx, 2
movzx edx, byte [eax + 0x16a]
test ecx, ecx
je 0x43fedc
test edx, 0x80
je 0x43fedc
mov eax, esi
mov dword [eax + 0xf8], 0x400
mov dword [eax + 0xfc], 0x10000
jmp 0x43ff4b
test byte [eax + 0x168], 4
je 0x43feff
test dl, 0x40
je 0x43feff
mov edx, eax
mov eax, 0x400
mov dword [edx + 0xf8], eax
mov dword [edx + 0xfc], eax
jmp 0x43ff4b
test edx, 0x80
je 0x43ff1d
mov dword [eax + 0xf8], 0x800
mov dword [eax + 0xfc], 0x1fe
jmp 0x43ff4b
test ecx, ecx
je 0x43ff37
mov dword [eax + 0xf8], 0x401
mov dword [eax + 0xfc], 0x400
jmp 0x43ff4b
mov dword [eax + 0xf8], 0x85
mov dword [eax + 0xfc], 0x84
mov edx, esi
mov eax, dword [ebp - 0x164]
or eax, 0xffffff80
mov byte [edx + 0x16b], al
mov eax, dword [ebx + 4]
test eax, eax
je 0x43ff6f
mov dword [edx + 0x54], eax
mov eax, dword [ebx + 8]
mov byte [edx + 0x157], al
mov eax, dword [ebx + 0x3c]
mov dword [edx + 0xd8], eax
mov edx, dword [ebx + 0x70]
test edx, edx
je 0x43fff0
mov eax, dword [ebp - 4]
test byte [eax + 0x16a], 0x40
jne 0x43ffad
mov edx, eax
mov eax, 0x2ee
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x43ffa9
mov eax, 0x2e
mov esp, ebp
pop ebp
ret
cmp edx, 2
je 0x43fff0
cmp edx, 1
jne 0x43ffc0
mov byte [eax + 0x159], 0x27
jmp 0x43fffa
cmp edx, 3
jne 0x43ffce
mov byte [eax + 0x159], 0x22
jmp 0x43fffa
mov edx, eax
mov eax, 0x2ef
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x43ffec
mov eax, 0x30
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov byte [eax + 0x159], 0
mov edx, dword [ebx + 0x74]
test edx, edx
je 0x440061
test byte [eax + 0x16a], 0x40
jne 0x44002c
mov edx, eax
mov eax, 0x2f0
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x440028
mov eax, 0x2e
mov esp, ebp
pop ebp
ret
cmp edx, 2
je 0x440061
cmp edx, 1
jne 0x44003f
and byte [eax + 0x16e], 0xfd
jmp 0x44007f
mov edx, eax
mov eax, 0x2f1
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x44005d
mov eax, 0x30
mov esp, ebp
pop ebp
ret
mov edx, eax
movzx eax, byte [edx + 0x16e]
movzx esi, byte [edx + 0x168]
and eax, 0xfffffffd
and esi, 2
or eax, esi
mov byte [edx + 0x16e], al
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x4400d2
cmp eax, 2
je 0x4400b8
cmp eax, 1
je 0x4400b8
cmp eax, 3
je 0x4400b8
mov edx, dword [ebp - 4]
mov eax, 0x2ec
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x4400b4
mov eax, 0x30
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16b]
test al, 8
jne 0x43f5db
test al, 0x10
jne 0x43f5db
mov eax, dword [ebx + 0x90]
cmp eax, 5
ja case.default.0x4400e1
jmp dword [eax*4 + 0x4e6c3c]
mov ecx, dword [ebp - 4]
and dword [ebp - 0x1c], 0xfffffffd
mov dword [ebp - 0x160], 0
movzx eax, byte [ecx + 0x170]
and eax, 0xffffffe3
movzx edx, byte [ecx + 0x16a]
or eax, 0x20
and edx, 0xfffffffe
mov byte [ecx + 0x16a], dl
mov dword [ebp - 0x164], eax
mov byte [ecx + 0x170], al
jmp 0x44029f
mov ecx, dword [ebp - 4]
and dword [ebp - 0x1c], 0xfffffffc
mov dword [ebp - 0x160], 0
movzx eax, byte [ecx + 0x170]
and eax, 0xffffffd3
movzx edx, byte [ecx + 0x16a]
or eax, 0x10
and edx, 0xfffffffe
mov byte [ecx + 0x16a], dl
mov dword [ebp - 0x164], eax
mov byte [ecx + 0x170], al
jmp 0x44029f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
or edx, 2
and edx, 0xfffffffe
mov dword [ebp - 0x1c], edx
movzx eax, byte [ecx + 0x170]
and eax, 0xffffffcb
movzx edx, byte [ecx + 0x16a]
or eax, 8
and edx, 0xfffffffe
mov byte [ecx + 0x16a], dl
mov dword [ebp - 0x164], eax
mov byte [ecx + 0x170], al
mov dword [ebp - 0x160], 0
jmp 0x44029f
mov ecx, dword [ebp - 4]
or dword [ebp - 0x1c], 2
mov dword [ebp - 0x160], 0
movzx eax, byte [ecx + 0x170]
or eax, 4
movzx edx, byte [ecx + 0x16a]
and eax, 0xffffffc7
or edx, 1
mov byte [ecx + 0x16a], dl
mov dword [ebp - 0x164], eax
mov byte [ecx + 0x170], al
jmp 0x44029f
cmp dword [ebx + 0x54], 0
jne 0x4401fe
mov eax, dword [ebp - 4]
test byte [eax + 0x168], 4
je 0x440233
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x160], 0
movzx edx, byte [ecx + 0x16a]
movzx eax, byte [ecx + 0x170]
or edx, 1
or eax, 4
mov byte [ecx + 0x16a], dl
mov dword [ebp - 0x164], eax
mov byte [ecx + 0x170], al
jmp 0x44029f
cmp dword [ebx + 0x50], 0
je 0x440274
mov ecx, eax
and dword [ebp - 0x1c], 0xfffffffc
mov dword [ebp - 0x160], 0
movzx eax, byte [ecx + 0x170]
and eax, 0xffffffd3
movzx edx, byte [ecx + 0x16a]
or eax, 0x10
and edx, 0xfffffffe
mov byte [ecx + 0x16a], dl
mov dword [ebp - 0x164], eax
mov byte [ecx + 0x170], al
jmp 0x44029f
mov ecx, eax
movzx eax, byte [ecx + 0x170]
and eax, 0xffffffe3
movzx edx, byte [ecx + 0x16a]
or eax, 0x20
and edx, 0xfffffffe
mov byte [ecx + 0x16a], dl
mov dword [ebp - 0x164], eax
mov byte [ecx + 0x170], al
mov eax, edx
and eax, 0x40
mov ecx, dword [ebx + 0xb4]
shr eax, 6
test ecx, ecx
je 0x4402d8
test eax, eax
jne 0x4402d8
mov edx, dword [ebp - 4]
mov eax, 0x2f0
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x4402d4
mov eax, 0x2e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
mov byte [esi + 0x15f], cl
mov ecx, dword [ebx + 0xb8]
test ecx, ecx
je 0x440311
test eax, eax
jne 0x440311
mov edx, esi
mov eax, 0x2f0
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x44030d
mov eax, 0x2e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x161], cl
mov ecx, dword [ebx + 0xbc]
test ecx, ecx
je 0x440347
test eax, eax
jne 0x440347
mov edx, esi
mov eax, 0x2f0
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x440343
mov eax, 0x2e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x163], cl
mov ecx, dword [ebx + 0xc0]
test ecx, ecx
je 0x44037d
test eax, eax
jne 0x44037f
mov edx, esi
mov eax, 0x2f0
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x440379
mov eax, 0x2e
mov esp, ebp
pop ebp
ret
test eax, eax
mov eax, esi
mov byte [eax + 0x165], cl
je 0x4403d7
movzx eax, byte [eax + 0x16b]
test al, 2
jne 0x440398
test al, 1
je 0x4403a9
mov eax, esi
mov dword [eax + 0x138], 3
jmp 0x440488
test al, 8
je 0x4403be
mov eax, esi
mov dword [eax + 0x138], 2
jmp 0x440488
test al, 0x10
je 0x440488
mov eax, esi
mov dword [eax + 0x138], 8
jmp 0x440488
test edx, 0x80
jne 0x4403e8
test byte [ebp - 0x164], 1
je 0x440440
movzx eax, byte [eax + 0x16b]
test al, 2
jne 0x4403f7
test al, 1
je 0x44041c
test byte [ebp - 0x164], 1
je 0x44040e
mov eax, esi
mov dword [eax + 0x138], 7
jmp 0x440488
mov eax, esi
mov dword [eax + 0x138], 0xb
jmp 0x440488
test al, 8
je 0x44042e
mov eax, esi
mov dword [eax + 0x138], 6
jmp 0x440488
test al, 0x10
je 0x440488
mov eax, esi
mov dword [eax + 0x138], 9
jmp 0x440488
test byte [ebp - 0x164], 2
movzx eax, byte [eax + 0x16b]
je 0x440488
test al, 2
jne 0x440458
test al, 1
je 0x440466
mov eax, esi
mov dword [eax + 0x138], 5
jmp 0x440488
test al, 8
je 0x440478
mov eax, esi
mov dword [eax + 0x138], 4
jmp 0x440488
test al, 0x10
je 0x440488
mov eax, esi
mov dword [eax + 0x138], 0xa
mov eax, dword [0x5120e0]
cmp dword [ebx + 0x84], 0
je 0x4404ac
test eax, eax
jne 0x4404ac
mov eax, 0x232
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x94], 0
je 0x442566
test eax, eax
je 0x4418b2
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0x164], eax
mov eax, dword [ebx + 0x9c]
cmp eax, 1
je 0x440536
test eax, eax
jne 0x4404fb
mov eax, dword [ebp - 4]
test byte [eax + 0x171], 0x20
jne 0x440504
push str.FORT_BUFFERED
call fcn.00438c60
add esp, 4
test eax, eax
je 0x440536
jmp 0x440504
cmp eax, 2
jne case.default.0x43f80e
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 4]
call fcn.00424a50
add esp, 8
mov esi, dword [ebp - 4]
xor edx, edx
cmp eax, 0xffffffff
sete dl
movzx ecx, byte [esi + 0x171]
shl edx, 6
and ecx, 0xffffffbf
or ecx, edx
mov byte [esi + 0x171], cl
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 4]
call fcn.00424a50
mov dword [ebp - 0x140], eax
add esp, 8
cmp dword [ebp - 0x140], 0xffffffff
je 0x4405c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
cmp eax, 3
jne 0x440574
mov eax, dword [ebp - 4]
mov dword [eax + 0x138], 1
jmp 0x440579
cmp eax, 5
jne 0x440595
mov eax, dword [ebp - 4]
test byte [eax + 0x168], 4
je 0x4405c0
or byte [eax + 0x16a], 2
mov dword [ebp - 0x18], 3
jmp 0x4405c0
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x168]
test dl, 4
je 0x4405c0
mov eax, 0x229
test dl, 0x20
mov ebx, dword [ebp - 8]
jne 0x4405b6
mov eax, 0x33
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5120e0]
test ecx, ecx
jne 0x4405df
cmp dword [ebp - 0x140], 0xfffffffa
jne 0x44060f
mov dword [ebp - 0x140], 1
jmp 0x440629
cmp dword [ebp - 0x140], 0xfffffffa
je 0x4423a8
cmp dword [ebp - 0x140], 1
je 0x440629
cmp dword [ebp - 0x164], 0
jne 0x4418b2
cmp dword [ebx + 0x84], 0
jne 0x44049a
cmp dword [ebp - 0x140], 0xfffffffc
je 0x4424d7
cmp dword [ebp - 0x140], 0
jl 0x442393
mov eax, dword [ebp - 4]
cmp dword [eax + 0x138], 1
jne 0x440667
cmp dword [ebp - 0x140], 0
je 0x440650
cmp dword [ebp - 0x140], 2
je 0x440650
cmp dword [ebp - 0x140], 1
jne 0x440667
mov edx, eax
shl ecx, 7
movzx eax, byte [edx + 0x170]
and eax, 0x7f
or eax, ecx
mov byte [edx + 0x170], al
cmp dword [ebp - 0x24], 0
je 0x440723
cmp dword [ebx + 0xa4], 0
jne 0x4406f8
cmp dword [ebx + 0x68], 0
je 0x44199b
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x13c]
mov edx, dword [eax + 0x100]
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], 0
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4406ba
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4406a5
dec eax
push eax
lea edx, [ebp - 0x148]
push edx
lea edi, [ebp - 0x144]
push edi
lea ecx, [ebp - 0x14]
push ecx
lea esi, [ebp - 0x18]
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x13c]
push ecx
call dword [ebx + 0x68]
mov dword [ebp - 0x164], eax
add esp, 0x24
mov edx, dword [ebp - 4]
mov dword [edx + 0xe4], eax
jmp 0x440732
push dword [ebx + 0xa8]
call fcn.00480dc0
mov dword [ebp - 0x164], eax
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xe4], eax
mov edx, dword [ebx + 0xa8]
mov dword [ecx + 0x178], edx
jmp 0x440732
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe4]
mov dword [ebp - 0x164], edx
cmp dword [ebp - 0x164], 0xffffffff
je 0x4420c7
cmp dword [ebx + 0xa4], 0
jne 0x440869
mov eax, dword [ebp - 4]
cmp dword [0x510c04], 0
mov dword [eax + 0x178], 0xffffffff
je 0x440869
movzx eax, byte [eax + 0x16b]
test al, 8
jne 0x440869
cmp dword [ebp - 0x24], 0
je 0x4407f1
mov edx, dword [ebp - 4]
test byte [edx + 0x170], 2
jne 0x44079a
test al, 4
je 0x4407a1
movzx ecx, byte [edx + 0x16a]
test ecx, 0x80
je 0x4407a1
mov edx, 0x8000
jmp 0x4407a3
xor edx, edx
mov ecx, dword [ebp - 0x20]
test ecx, 0xc0000000
je 0x4407b3
or edx, 2
jmp 0x4407c2
mov esi, edx
or esi, 1
test ecx, 0x40000000
je 0x4407c2
mov edx, esi
cmp dword [ebx + 0x78], 1
je 0x4407cc
test al, 1
je 0x4407cf
or edx, 8
push edx
push dword [ebp - 0x164]
call fcn.00480f30
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 0x178], eax
mov eax, dword [0x5120e0]
jmp 0x44086e
cmp dword [0x5120e0], 0
jne 0x440872
cmp dword [ebp - 0x140], 1
je 0x44084d
cmp dword [ebp - 0x140], 0
jne 0x440828
call fcn.004774a0
push eax
call fcn.00481290
mov edx, dword [ebp - 4]
add esp, 4
mov dword [edx + 0x178], eax
jmp 0x4408a4
cmp dword [ebp - 0x140], 2
jne 0x4408a4
call fcn.004774a0
add eax, 0x40
push eax
call fcn.00481290
mov edx, dword [ebp - 4]
add esp, 4
mov dword [edx + 0x178], eax
jmp 0x4408a4
call fcn.004774a0
add eax, 0x20
push eax
call fcn.00481290
mov edx, dword [ebp - 4]
add esp, 4
mov dword [edx + 0x178], eax
jmp 0x4408a4
mov eax, dword [0x5120e0]
test eax, eax
je 0x440895
mov eax, dword [ebp - 0x140]
lea ecx, [eax + 6]
cmp ecx, 0x20
jae 0x440895
mov eax, 1
shl eax, cl
test eax, 0x1c1
je 0x440895
mov eax, 2
jmp 0x4408b0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe4]
mov dword [ebp - 0x164], edx
push dword [ebp - 0x164]
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov edx, dword [ebp - 4]
movsx edx, byte [edx + 0x156]
test edx, edx
jne 0x4409e3
mov edx, dword [ebp - 4]
cmp byte [edx + 0x154], 1
je 0x4419cc
movzx edx, byte [edx + 0x169]
and edx, 6
shr edx, 1
test edx, edx
je 0x44097d
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x100]
add ecx, 2
cmp ecx, 0x20
jae 0x44097d
mov esi, 1
shl esi, cl
test esi, 0x103
je 0x44097d
cmp edx, 1
je 0x44095d
cmp edx, 2
jne 0x440937
mov edx, dword [ebp - 4]
mov byte [edx + 0x156], 2
movzx esi, byte [edx + 0x168]
movzx ecx, byte [edx + 0x16a]
inc dword [edx + 0xf8]
jmp 0x440a20
cmp edx, 3
jne case.default.0x43f80e
mov edx, dword [ebp - 4]
mov byte [edx + 0x156], 3
movzx esi, byte [edx + 0x168]
movzx ecx, byte [edx + 0x16a]
jmp 0x440a20
mov edx, dword [ebp - 4]
mov byte [edx + 0x156], 1
movzx esi, byte [edx + 0x168]
movzx ecx, byte [edx + 0x16a]
inc dword [edx + 0xf8]
jmp 0x4409d7
mov edx, dword [ebp - 4]
movzx esi, byte [edx + 0x168]
test esi, 4
movzx ecx, byte [edx + 0x16a]
je 0x4409b8
cmp dword [edx + 0x138], 1
je 0x4409ca
test cl, 0x40
je 0x4409a9
cmp eax, 2
je 0x4409ca
mov byte [edx + 0x156], 2
inc dword [edx + 0xf8]
jmp 0x440a20
test cl, 0x40
je 0x4409a9
cmp eax, 2
jne 0x4409a9
test esi, 1
je 0x4409a9
mov byte [edx + 0x156], 1
inc dword [edx + 0xf8]
mov edx, dword [ebp - 4]
add dword [edx + 0xf8], 5
jmp 0x440a20
mov ecx, dword [ebp - 4]
cmp edx, 3
movzx esi, byte [ecx + 0x168]
movzx ecx, byte [ecx + 0x16a]
je 0x440a20
mov edi, dword [ebp - 4]
movsx edi, byte [edi + 0x154]
cmp edi, 1
mov dword [ebp - 0x164], edi
je 0x440a17
mov edi, dword [ebp - 4]
inc dword [edi + 0xf8]
cmp edx, 1
je 0x4420b5
test esi, 1
je 0x440a43
mov edx, dword [ebp - 4]
test byte [edx + 0x16b], 8
je 0x440a43
cmp byte [edx + 0x155], 2
jne 0x440a43
inc dword [edx + 0xf8]
test esi, 4
je 0x440a6a
mov edx, dword [ebp - 4]
and ecx, 0x40
shr ecx, 6
test byte [edx + 0x16b], 8
je 0x440a70
test ecx, ecx
je 0x440a70
add dword [edx + 0xf8], 2
jmp 0x440a70
and ecx, 0x40
shr ecx, 6
cmp eax, 1
jne 0x440a84
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16c]
or eax, 8
jmp 0x440a91
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16c]
and eax, 0xfffffff7
mov edx, dword [ebp - 4]
test ecx, ecx
mov byte [edx + 0x16c], al
je 0x440ba4
push dword [ebp - 4]
call fcn.004399b0
add esp, 4
test eax, eax
jne 0x43f2bc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x440ba4
movzx eax, byte [edx + 0x1e]
test eax, eax
je 0x440ba4
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x164], eax
movzx eax, byte [eax + 0x16d]
test al, 0x40
je 0x440af6
mov edx, dword [ebp - 0x164]
cmp byte [edx + 0x156], 1
je 0x441a08
push dword [ebp - 0x164]
call fcn.00435300
add esp, 4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x7c]
test edx, edx
je 0x440b12
mov byte [edx + 0x1e], 0
test eax, eax
je 0x440b89
mov edx, dword [ebp - 0x164]
mov edx, dword [edx + 0x18]
test edx, edx
je 0x441a51
test byte [edx + 0x44], 2
je 0x440b5e
mov ecx, dword [ebp - 0x164]
mov dword [edx + 0x38], eax
mov edx, dword [ecx + 0x18]
mov dword [edx + 0x3c], eax
mov edx, dword [ecx + 0x64]
test edx, edx
je 0x440b51
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x164]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x164]
push eax
push eax
movzx edx, byte [ecx + 0x16c]
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043d480
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x164]
add dword [eax + 0x98], 1
adc dword [eax + 0x9c], 0
and byte [eax + 0x16f], 0xfb
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16b]
test al, 8
je 0x440bd0
mov edx, dword [ebp - 4]
test byte [edx + 0x16c], 8
jne 0x440bd0
mov eax, 0x33
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x24], 0
je 0x4414e6
cmp dword [ebx + 0x58], 5
je 0x441f6a
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x4414d5
cmp eax, 2
je 0x4414d5
cmp eax, 3
jne 0x440c30
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x16b]
and eax, 0xfffffffe
and byte [edx + 0x16f], 0xfb
mov byte [edx + 0x16b], al
mov dword [edx + 0x98], 1
mov dword [edx + 0x9c], 0
jmp 0x4414e6
cmp eax, 1
jne 0x440e03
cmp dword [ebx + 0x58], 5
je 0x441f40
mov eax, dword [ebp - 4]
test byte [eax + 0x16c], 8
jne 0x440c5b
movzx eax, byte [eax + 0x16b]
jmp 0x4414e6
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov esi, eax
mov eax, dword [esi + 0xe4]
call fcn.00442780
mov dword [ebp - 0x164], eax
mov eax, 0xffffffff
mov ecx, edx
mov esi, dword [ebp - 0x164]
sub ecx, eax
sub esi, eax
or esi, ecx
je 0x441efe
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x164]
movzx eax, byte [esi + 0x16b]
and byte [esi + 0x16f], 0xfb
and eax, 0xfffffffe
mov dword [esi + 0x98], 0x80000000
mov dword [esi + 0x9c], 0xffffffff
mov byte [esi + 0x16b], al
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xbc], edx
cmp dword [esi + 0x138], 5
je 0x4414e6
mov eax, esi
movsx edx, byte [eax + 0x154]
lea eax, [edx - 1]
cmp eax, 7
ja case.default.0x440cf8
jmp dword [eax*4 + 0x4e6c54]
cmp edx, 7
je 0x441c3a
cmp edx, 5
je 0x441c03
mov dword [ebp - 0x160], 3
mov edx, esi
mov eax, dword [edx + 0xe4]
call fcn.004427e0
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x164], edx
mov esi, dword [ebp - 0x160]
mov edx, 1
neg esi
mov dword [esp + 4], esi
mov dword [esp + 8], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xe4]
call fcn.00442780
mov dword [ebp - 0x15c], eax
mov eax, 0xffffffff
mov ecx, edx
mov edi, dword [ebp - 0x15c]
sub ecx, eax
sub edi, eax
or edi, ecx
je 0x440e72
mov ecx, dword [ebp - 0x158]
sub ecx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x164]
sbb eax, edx
neg ecx
neg eax
xor edx, edx
add ecx, dword [ebp - 0x160]
add eax, edx
or ecx, eax
jne 0x440e72
mov eax, dword [ebp - 4]
test byte [eax + 0x16e], 1
je 0x440dba
cmp dword [ebx + 0x68], 0
je 0x441a70
push 0
mov ecx, eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x160]
lea edx, [ebp - 0x15c]
push edx
push dword [ecx + 0xe4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x441be2
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebp - 0x150]
jne 0x440e12
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16b]
jmp 0x4414e6
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0xe4]
call fcn.00442780
mov ecx, 0xffffffff
sub eax, ecx
sub edx, ecx
or eax, edx
je 0x441b87
mov edx, esi
movzx eax, byte [edx + 0x16b]
and eax, 0xfffffffe
and byte [edx + 0x16f], 0xfb
mov dword [edx + 0x98], 0x80000000
mov dword [edx + 0x9c], 0xffffffff
mov byte [edx + 0x16b], al
jmp 0x4414e6
mov edx, esi
mov eax, dword [edx + 0xe4]
call fcn.004427e0
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x164], edx
mov dword [esp + 4], 0xfffffffc
mov edx, 1
mov dword [esp + 8], 0xffffffff
mov ecx, esi
mov eax, dword [ecx + 0xe4]
call fcn.00442780
mov edi, eax
mov ecx, 0xffffffff
mov esi, edx
sub edi, ecx
sub esi, ecx
or edi, esi
je 0x440f39
mov esi, dword [ebp - 0x160]
mov ecx, 4
sub esi, eax
mov eax, dword [ebp - 0x164]
sbb eax, edx
sub esi, ecx
or esi, eax
je 0x440f99
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0xe4]
call fcn.00442780
mov ecx, 0xffffffff
sub eax, ecx
sub edx, ecx
or eax, edx
je 0x441b87
mov edx, esi
movzx eax, byte [edx + 0x16b]
and eax, 0xfffffffe
and byte [edx + 0x16f], 0xfb
mov dword [edx + 0x98], 0x80000000
mov dword [edx + 0x9c], 0xffffffff
mov byte [edx + 0x16b], al
jmp 0x4414e6
mov eax, dword [ebp - 4]
test byte [eax + 0x16e], 1
je 0x440faf
cmp dword [ebx + 0x68], 0
je 0x441c58
push 0
mov ecx, eax
lea eax, [ebp - 0x150]
push eax
push 4
lea edx, [ebp - 0x15c]
push edx
push dword [ecx + 0xe4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x441be2
cmp dword [ebp - 0x150], 4
jne 0x44100d
movzx eax, byte [ebp - 0x15b]
shl eax, 8
movzx edx, byte [ebp - 0x15c]
or edx, eax
cmp edx, 1
je 0x441cf1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16b]
jmp 0x4414e6
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0xe4]
call fcn.00442780
mov ecx, 0xffffffff
sub eax, ecx
sub edx, ecx
or eax, edx
je 0x441b87
mov edx, esi
movzx eax, byte [edx + 0x16b]
and eax, 0xfffffffe
and byte [edx + 0x16f], 0xfb
mov dword [edx + 0x98], 0x80000000
mov dword [edx + 0x9c], 0xffffffff
mov byte [edx + 0x16b], al
jmp 0x4414e6
mov edx, esi
mov eax, dword [edx + 0xe4]
call fcn.004427e0
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x164], edx
mov dword [esp + 4], 0xfffffff7
mov edx, 1
mov dword [esp + 8], 0xffffffff
mov ecx, esi
mov eax, dword [ecx + 0xe4]
call fcn.00442780
mov edi, eax
mov ecx, 0xffffffff
mov esi, edx
sub edi, ecx
sub esi, ecx
or edi, esi
je 0x4411ef
mov ecx, dword [ebp - 0x160]
sub ecx, eax
mov eax, dword [ebp - 0x164]
sbb eax, edx
mov edx, 9
sub ecx, edx
or ecx, eax
jne 0x4411ef
mov eax, dword [ebp - 4]
test byte [eax + 0x16e], 1
je 0x4410f2
cmp dword [ebx + 0x68], 0
je 0x441d4c
push 0
mov ecx, eax
lea eax, [ebp - 0x150]
push eax
push 9
lea edx, [ebp - 0x15c]
push edx
push dword [ecx + 0xe4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x441be2
cmp dword [ebp - 0x150], 9
jne 0x44118f
mov eax, dword [ebp - 4]
movzx esi, byte [ebp - 0x157]
movzx edx, byte [ebp - 0x156]
movzx ecx, byte [ebp - 0x155]
movzx edi, byte [ebp - 0x154]
test byte [eax + 0x16d], 0x20
je 0x44115e
shl ecx, 8
shl edx, 0x10
or edi, ecx
shl esi, 0x18
or edi, edx
or edi, esi
jmp 0x44116d
shl edx, 8
shl ecx, 0x10
or esi, edx
shl edi, 0x18
or esi, ecx
or edi, esi
cmp edi, 1
jne 0x440c4f
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0xe4]
call fcn.00442780
mov ecx, 0xffffffff
sub eax, ecx
sub edx, ecx
or eax, edx
je 0x441b87
mov edx, esi
movzx eax, byte [edx + 0x16b]
and eax, 0xfffffffe
and byte [edx + 0x16f], 0xfb
mov dword [edx + 0x98], 0x80000000
mov dword [edx + 0x9c], 0xffffffff
mov byte [edx + 0x16b], al
jmp 0x4414e6
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0xe4]
call fcn.00442780
mov ecx, 0xffffffff
sub eax, ecx
sub edx, ecx
or eax, edx
je 0x441b87
mov edx, esi
movzx eax, byte [edx + 0x16b]
and eax, 0xfffffffe
and byte [edx + 0x16f], 0xfb
mov dword [edx + 0x98], 0x80000000
mov dword [edx + 0x9c], 0xffffffff
mov byte [edx + 0x16b], al
jmp 0x4414e6
mov edx, esi
mov eax, dword [edx + 0xe4]
call fcn.004427e0
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x164], edx
mov edi, esi
xor ecx, ecx
xor esi, esi
mov edx, 1
sub esi, dword [edi + 0xf8]
mov eax, dword [edi + 0xe4]
mov dword [esp + 4], esi
sbb ecx, 0
mov dword [esp + 8], ecx
call fcn.00442780
mov edi, eax
mov ecx, 0xffffffff
mov esi, edx
sub edi, ecx
sub esi, ecx
or edi, esi
je 0x4412c7
mov ecx, dword [ebp - 0x160]
sub ecx, eax
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x164]
sbb eax, edx
neg ecx
neg eax
xor edx, edx
mov esi, dword [esi + 0xf8]
add ecx, esi
add eax, edx
or ecx, eax
je 0x441327
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0xe4]
call fcn.00442780
mov ecx, 0xffffffff
sub eax, ecx
sub edx, ecx
or eax, edx
je 0x441b87
mov edx, esi
movzx eax, byte [edx + 0x16b]
and eax, 0xfffffffe
and byte [edx + 0x16f], 0xfb
mov dword [edx + 0x98], 0x80000000
mov dword [edx + 0x9c], 0xffffffff
mov byte [edx + 0x16b], al
jmp 0x4414e6
lea eax, [ebp - 0x160]
push eax
push 0
push esi
call fcn.0041d7e0
add esp, 0xc
test eax, eax
jne 0x43f2bc
mov eax, dword [ebp - 4]
test byte [eax + 0x16e], 1
je 0x441357
cmp dword [ebx + 0x68], 0
je 0x441e17
mov edx, eax
lea eax, [ebp - 0x150]
push 0
push eax
push dword [edx + 0xf8]
push dword [ebp - 0x160]
push dword [edx + 0xe4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x441be2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
cmp eax, dword [ebp - 0x150]
jne 0x441441
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + 0x16a]
test ecx, 0x80
jne 0x4413bc
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0xe4]
call fcn.00442780
mov ecx, 0xffffffff
sub eax, ecx
sub edx, ecx
or eax, edx
je 0x441b87
push 0xdfa
push str.for_nt_open_proc.c
push 2
push 8
call fcn.0041aca0
add esp, 0x10
mov eax, esi
movzx eax, byte [eax + 0x16b]
jmp 0x4414e6
mov eax, dword [ebp - 4]
or byte [eax + 0x16f], 4
movzx eax, byte [eax + 0x16b]
test al, 1
je 0x44158d
mov edx, dword [ebp - 4]
test byte [edx + 0x16c], 8
je 0x4415ba
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0xe4]
call fcn.00442780
mov ecx, 0xffffffff
sub eax, ecx
sub edx, ecx
or eax, edx
je 0x441b87
mov eax, esi
cmp dword [eax + 0x138], 7
jne 0x441565
mov ecx, 0xffffffff
mov edx, 1
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov eax, dword [esi + 0xe4]
call fcn.00442780
mov ecx, 0xffffffff
sub eax, ecx
sub edx, ecx
or eax, edx
je 0x441b87
mov eax, esi
mov dword [eax + 0x98], 0x80000000
mov dword [eax + 0x9c], 0xffffffff
and byte [eax + 0x16f], 0xfb
movzx eax, byte [eax + 0x16b]
test al, 1
jne 0x4415ba
mov edx, dword [ebp - 4]
test byte [edx + 0x16c], 8
je 0x4415ba
test byte [edx + 0x168], 4
je 0x4415a6
test al, 8
jne 0x4415ba
test byte [edx + 0x16a], 0x40
jne 0x4415b3
test al, 4
jne 0x4415ba
or byte [edx + 0x16d], 8
test eax, 0x80
jne 0x4415d3
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xf8]
mov word [edx + 0x150], ax
jmp 0x44160a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x156], 1
je 0x44207c
test byte [eax + 0x168], 4
je 0x4415fc
mov edx, eax
mov eax, 0x4f
mov word [edx + 0x150], ax
jmp 0x44160a
mov edx, eax
mov eax, 0x50
mov word [edx + 0x150], ax
mov edx, dword [ebx + 0x14]
test edx, edx
jle 0x44203d
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0x10]
movzx ecx, byte [ecx + 0x168]
and ecx, 4
shr ecx, 2
test ecx, ecx
je 0x44163a
cmp eax, 0x7ffffe00
jle 0x44163a
mov eax, 0x7ffffe00
jmp 0x441642
test eax, eax
jle 0x441ff2
add eax, 0x1ff
and eax, 0xfffffe00
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp - 4]
test byte [ecx + 0x16b], 8
je 0x4416c4
mov edx, ecx
test byte [edx + 0x168], 4
je 0x441678
movzx edx, byte [ecx + 0x171]
and edx, 0xffffffbf
mov byte [ecx + 0x171], dl
jmp 0x44167f
movzx edx, byte [edx + 0x171]
test dl, 0x40
mov esi, dword [ecx + 0xf8]
mov dword [ebp - 0x164], esi
je 0x4416be
cmp eax, dword [ebp - 0x164]
jae 0x44169c
mov ecx, esi
mov eax, ecx
jmp 0x4416de
imul edx, eax
mov esi, dword [ecx + 0xf8]
mov dword [ebp - 0x164], esi
lea ecx, [esi + 4]
cmp ecx, edx
ja 0x4416dc
mov ecx, edx
mov eax, ecx
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 0x16a]
test edx, 0x80
je 0x441708
mov esi, dword [ebp - 4]
cmp byte [esi + 0x154], 3
je 0x441fb4
mov esi, dword [ebp - 4]
mov dword [esi + 0xec], eax
mov ecx, esi
test dl, 0x40
mov eax, dword [ebx + 0x10]
mov dword [ecx + 0x13c], eax
je 0x4417c0
mov eax, 0x234
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0x23f
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x4418e3
mov eax, 0x30
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0x23e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x441906
mov eax, 0x30
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0x23a
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x441929
mov eax, 0x30
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0x23c
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x44194c
mov eax, 0x30
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x58], 0
jne 0x43f270
mov dword [ebx + 0x58], 3
jmp 0x43f270
mov ebx, dword [ebp - 0x160]
mov edx, dword [ebp - 4]
or dword [ebp - 0x14], 0x20000000
movsx eax, byte [edx + 0x154]
movsx ecx, byte [edx + 0x155]
jmp 0x43faa3
push esi
call fcn.004808d0
add esp, 4
cmp eax, ebx
je 0x441966
jmp 0x43fa70
xor eax, eax
lea edx, [ebp - 0x13c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0xe4], eax
jmp 0x440732
movzx esi, byte [edx + 0x168]
test esi, 4
movzx ecx, byte [edx + 0x16a]
je 0x4419fc
test byte [edx + 0x16b], 8
je 0x4419fc
test cl, 0x40
je 0x4419fc
mov byte [edx + 0x156], 2
jmp 0x440a20
mov byte [edx + 0x156], 3
jmp 0x440a20
mov ecx, dword [edx + 0x38]
movsx edx, byte [ecx + 5]
cmp edx, 0x20
je 0x441a3e
cmp edx, 0x2b
jne 0x441a2a
mov eax, dword [ebp - 0x164]
mov byte [ecx + 5], 0
movzx eax, byte [eax + 0x16d]
mov edx, dword [ebp - 0x164]
and eax, 0xffffffbf
mov byte [edx + 0x16d], al
jmp 0x440af6
mov eax, dword [ebp - 0x164]
mov byte [ecx + 5], 0x24
movzx eax, byte [eax + 0x16d]
jmp 0x441a2a
push dword [ebp - 0x164]
push eax
push eax
push 1
call fcn.00418ba0
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
xor eax, eax
lea edx, [ebp - 0x13c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0xffffffff
je 0x441b05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx + 0xe8], eax
mov eax, 0x78
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx + 0xe8], eax
mov eax, 0x1e
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, esi
movsx eax, byte [eax + 0x156]
cmp eax, 3
je 0x441c2b
cmp eax, 2
mov eax, 2
je 0x441c20
mov eax, 3
mov dword [ebp - 0x160], eax
jmp 0x440d1b
mov dword [ebp - 0x160], 1
jmp 0x440d1b
mov eax, esi
cmp byte [eax + 0x156], 3
jne 0x440d11
mov dword [ebp - 0x160], 2
jmp 0x440d1b
xor eax, eax
lea edx, [ebp - 0x13c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0xffffffff
je 0x441be2
mov dword [esp + 4], 0xfffffffc
mov edx, 1
mov dword [esp + 8], 0xffffffff
call fcn.00442780
push 0
lea eax, [ebp - 0x150]
push eax
push 4
lea edx, [ebp - 0x15c]
push edx
push dword [ebp - 0x164]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
push dword [ebp - 0x164]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0xe4]
call fcn.00442780
jmp 0x440fd1
cmp byte [ebp - 0x15a], 0x1a
je 0x441d09
xor eax, eax
lea edx, [ebp - 0x13c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x441be2
mov eax, edi
mov edx, 2
mov dword [esp + 4], 0xfffffff7
mov dword [esp + 8], 0xffffffff
call fcn.00442780
push 0
lea eax, [ebp - 0x150]
push eax
push 9
lea edx, [ebp - 0x15c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0xe4]
call fcn.00442780
jmp 0x441114
xor eax, eax
lea edx, [ebp - 0x13c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0xffffffff
je 0x441be2
mov ecx, dword [ebp - 4]
xor esi, esi
xor edi, edi
mov edx, 2
sub edi, dword [ecx + 0xf8]
mov dword [esp + 4], edi
sbb esi, 0
mov dword [esp + 8], esi
call fcn.00442780
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x150]
push 0
push eax
push dword [edx + 0xf8]
push dword [ebp - 0x160]
push dword [ebp - 0x164]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
push dword [ebp - 0x164]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov edx, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0xe4]
call fcn.00442780
jmp 0x44137c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe4]
call fcn.004427e0
or eax, edx
jne 0x441f1f
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x16b]
jmp 0x4414e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx + 0xe8], eax
mov eax, 0x78
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0x80000000
mov dword [eax + 0x9c], 0xffffffff
and byte [eax + 0x16f], 0xfb
movzx eax, byte [eax + 0x16b]
jmp 0x4414e6
mov eax, dword [ebp - 4]
push dword [eax + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x441f8c
mov eax, dword [ebp - 4]
and byte [eax + 0x16d], 0xf7
jmp 0x440be4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx + 0xe8], eax
mov eax, 0x26
mov edi, dword [ebp - 0x10]
and byte [edx + 0x16d], 0xf7
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x441fff
mov dword [ebx + 0x10], 0x400
jmp 0x442019
mov eax, dword [0x50c7ec]
cmp eax, 0xfffffffe
je 0x44202b
test eax, eax
je 0x442012
cmp eax, 0xffffffff
jne 0x442023
mov dword [ebx + 0x10], 0x20000
mov eax, 0x2000
jmp 0x44164f
mov dword [ebx + 0x10], eax
jmp 0x44164f
mov eax, 0x6a
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x50c7f0]
cmp edx, 0xfffffffe
je 0x44206a
test edx, edx
je 0x442051
cmp edx, 0xffffffff
jne 0x442062
mov dword [ebx + 0x14], 1
mov edx, 1
jmp 0x441615
mov dword [ebx + 0x14], edx
jmp 0x441615
mov eax, 0x6b
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
test byte [eax + 0x168], 4
je 0x44208c
mov edx, 0x50
jmp 0x442091
mov edx, 0x51
cmp byte [eax + 0x154], 1
je 0x4420a9
add edx, 4
mov word [eax + 0x150], dx
jmp 0x44160a
mov word [eax + 0x150], dx
jmp 0x44160a
cmp dword [ebp - 0x164], 1
jne 0x4409d7
jmp 0x440a20
cmp dword [ebx + 0xa4], 0
je 0x4421b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00481520
mov dword [eax], ebx
cmp ebx, 2
jge 0x442188
cmp ebx, 0x7b
je 0x4426f3
cmp ebx, 0xa1
je 0x4426f3
cmp ebx, 0xce
je 0x4426f3
cmp ebx, 0xb7
je 0x4426d0
cmp ebx, 0x50
je 0x4426d0
cmp ebx, 0x13
je 0x442705
cmp ebx, 5
je 0x442705
cmp ebx, 0x14
je 0x442176
cmp ebx, 0xf
je 0x442176
cmp ebx, 4
jne 0x44215b
mov edx, dword [ebp - 4]
mov eax, 0x25b
test byte [edx + 0x168], 0x20
jne 0x442169
mov eax, 0x1e
jmp 0x442169
mov eax, dword [ebp - 4]
mov dword [eax + 0xe8], ebx
mov eax, 0x1e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, 0x2a
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
cmp ebx, 3
jg 0x4420ec
mov edx, dword [ebp - 4]
mov eax, 0x25a
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x4421b0
mov eax, 0x1d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test byte [eax + 0x168], 1
je 0x4421cd
test byte [eax + 0x169], 0x40
je 0x4420d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 4]
cmp eax, 0x13
movzx edx, byte [edx + 0x168]
je 0x4421f0
cmp eax, 5
je 0x4421f0
test dl, 4
je 0x442271
test dl, 1
jne 0x442271
cmp dword [ebp - 0x15c], 0
je 0x442271
mov edx, dword [ebp - 4]
test byte [edx + 0x169], 0x40
jne 0x442271
test byte [edx + 0x16e], 1
jne 0x442271
xor eax, eax
lea ecx, [ebp - 0x13c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x20]
and edx, 0x3fffffff
push dword [ebp - 0x1c]
or edx, 0x80000000
push edx
mov dword [ebp - 0x20], edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x164]
cmp edx, 0xffffffff
mov dword [eax + 0xe4], edx
je 0x442341
or byte [eax + 0x169], 0x40
or byte [eax + 0x16f], 0x10
jmp 0x44232f
cmp eax, 0x20
jne 0x442320
cmp dword [ebp - 0x160], 0
je 0x442320
cmp dword [ebp - 0x15c], 0
jne 0x4422ad
mov eax, dword [ebp - 4]
test byte [eax + 0x169], 0x40
jne 0x4422ad
mov edx, dword [eax + 0xe4]
mov dword [ebp - 0x164], edx
jmp 0x44232f
xor eax, eax
lea esi, [ebp - 0x13c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
and ecx, 0x3fffffff
or edx, 2
or ecx, 0x80000000
push edx
push ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x164]
cmp edx, 0xffffffff
mov dword [eax + 0xe4], edx
je 0x4420d4
or byte [eax + 0x169], 0x40
or byte [eax + 0x16f], 0x10
or byte [eax + 0x16a], 1
or byte [eax + 0x170], 4
jmp 0x44073f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe4]
mov dword [ebp - 0x164], edx
cmp dword [ebp - 0x164], 0xffffffff
je 0x4420d4
jmp 0x44073f
test byte [eax + 0x168], 4
je 0x44225e
xor eax, eax
lea ecx, [ebp - 0x13c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x20]
and edx, 0x7fffffff
push dword [ebp - 0x1c]
or edx, 0x40000000
push edx
mov dword [ebp - 0x20], edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0xe4], eax
or byte [edx + 0x16e], 1
jmp 0x44232f
test ecx, ecx
je 0x440667
cmp dword [ebp - 0x140], 0xfffffffa
jne 0x440667
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], 0
or byte [eax + 0x170], 0x80
cmp dword [ebx + 0x84], 0
je 0x4423d4
cmp dword [ebx + 0x88], 0
jne 0x4423d4
and byte [eax + 0x171], 0xfe
jmp 0x4423db
or byte [eax + 0x171], 1
mov eax, dword [ebp - 0x164]
test eax, eax
lea edx, [ebp - 0x14c]
jne 0x4423f0
mov eax, 0x100
push edx
push 0
mov dword [ebp - 0x164], eax
lea ecx, [eax + 1]
push ecx
call fcn.0041d7e0
add esp, 0xc
test eax, eax
jne 0x43f2bc
cmp dword [ebx + 0x98], 0
jne 0x442434
mov eax, dword [ebp - 4]
push dword [eax + 0x100]
push str.Unit__i
push dword [ebp - 0x14c]
call fcn.004766a0
add esp, 0xc
jmp 0x44245e
push dword [ebp - 0x164]
push dword [ebx + 0x94]
push dword [ebp - 0x14c]
call fcn.00476570
add esp, 0xc
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x164]
mov byte [eax + edx], 0
push dword [ebp - 0x14c]
call fcn.004cafe0
add esp, 4
mov edx, dword [ebp - 4]
cmp eax, 0xffffffff
mov dword [edx + 0xe4], eax
je 0x44275e
test byte [edx + 0x171], 1
je 0x4424b4
push eax
call fcn.004cb0a0
mov eax, dword [ebp - 4]
push dword [eax + 0xe4]
call fcn.004cb020
add esp, 8
test eax, eax
jne 0x4424b4
mov eax, 0x28e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x14c]
call fcn.0041d8a0
add esp, 4
test eax, eax
je 0x440667
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
movsx edx, word [eax + 0x152]
cmp edx, 4
jge 0x442525
push dword [eax + 0x60]
call fcn.0041d8a0
add esp, 4
test eax, eax
je 0x442502
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x158]
push 0
push 5
call fcn.0041d7e0
add esp, 0xc
test eax, eax
je 0x442525
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x138], 0
mov dword [ebp - 0x13c], 0x314d4f43
mov eax, dword [ebp - 4]
lea edi, [ebp - 0x13c]
mov esi, dword [eax + 0x60]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x442542
mov edx, dword [ebp - 4]
mov eax, 4
mov ecx, dword [0x5120e0]
mov word [edx + 0x152], ax
jmp 0x442393
test eax, eax
jne 0x442582
push str.USER
lea eax, [ebp - 0x13c]
push eax
call fcn.0047dfe0
add esp, 8
test eax, eax
je 0x442591
mov dword [ebp - 0x164], 0
jmp 0x4404cd
mov dword [ebp - 0x13c], 0x4e4f43
mov eax, esi
lea edi, [ebp - 0x13c]
mov esi, dword [eax + 0x60]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x4425a6
mov edx, dword [ebp - 4]
mov eax, 3
mov dword [ebp - 0x164], 0
mov word [edx + 0x152], ax
jmp 0x4404cd
mov eax, dword [ebp - 4]
test byte [eax + 0x168], 1
je 0x43fc55
mov edx, eax
movzx eax, byte [edx + 0x16b]
and eax, 0xffffffdf
mov byte [edx + 0x16b], al
jmp 0x43fc68
mov eax, dword [ebp - 4]
cmp byte [eax + 0x156], 3
je 0x43fbca
mov eax, 0x2e
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 0x16b]
test dl, 0x10
je 0x43f9b6
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x155], 3
mov ecx, 3
jmp 0x43f9c5
mov edx, ecx
test byte [edx + 0x168], 4
je 0x442667
test byte [edx + 0x16b], 8
je 0x442667
test byte [edx + 0x16a], 0x40
je 0x442667
mov byte [edx + 0x156], 2
jmp 0x43f902
movsx edx, al
cmp edx, 4
je 0x4426b2
cmp edx, 1
je 0x4426b2
movzx esi, byte [ecx + 0x16a]
test esi, 0x80
jne 0x4426b2
movzx ecx, byte [ecx + 0x170]
test cl, 1
jne 0x4426b2
test cl, 2
jne 0x4426b2
test esi, 0x40
je 0x43f902
cmp edx, 5
jl 0x43f902
cmp edx, 8
jg 0x43f902
mov edx, dword [ebp - 4]
mov byte [edx + 0x156], 3
jmp 0x43f902
mov dword [ebp - 0x15c], 1
jmp 0x43f45e
mov edx, dword [ebp - 4]
mov eax, 0x259
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x4426ef
mov eax, 0xa
mov esp, ebp
pop ebp
ret
mov eax, 0x2b
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0x258
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x442724
mov eax, 9
mov esp, ebp
pop ebp
ret
mov eax, 0x25
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, 0x64
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, 0x63
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, 0x258
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test byte [edx + 0x168], 0x20
mov edi, dword [ebp - 0x10]
jne 0x44277a
mov eax, 9
mov esp, ebp
pop ebp
ret