Function at 0x398db90
Capabilities:
Inspect section memory permissions

Disassembly:
push 0xffffffffffffffff
push 0x3a2ff76
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c8]
mov edi, dword [esp + 0x1d0]
mov ecx, dword [esp + 0x1d4]
mov edx, dword [esp + 0x1f4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov byte [esp + 0x17], 0
test edi, edi
je 0x398de86
mov eax, dword [edi + 8]
test eax, eax
je 0x398de86
cmp dword [eax + 4], 0
je 0x398de86
cmp dword [edi + 4], 0
jne 0x398de86
lea ecx, [esp + 0x110]
call fcn.039efdc0
mov dword [esp + 0x1c0], 0
mov ecx, dword [edi + 8]
mov esi, dword [ecx + 4]
lea ecx, [esp + 0x6c]
call fcn.039efdc0
mov byte [esp + 0x1c0], 1
mov edx, dword [edi + 8]
movzx eax, word [edx]
shr eax, 1
push eax
push esi
lea ecx, [esp + 0x118]
call fcn.039efdd0
mov edx, dword [esp + 0x110]
lea ecx, [esp + 0x6c]
push ecx
push edx
call fcn.039d9870
add esp, 8
test al, al
je 0x398de5e
cmp dword [esp + 0x1ec], 0
jne 0x398de5e
mov ebx, dword [esp + 0x1e8]
mov eax, ebx
and eax, 0x200000
je 0x398dcae
nop
test ebx, 0xff5ea380
jne 0x398de5e
xor edi, edi
test bl, 0x30
jne 0x398dcc6
mov edi, 0x40000000
test eax, eax
je 0x398dcd0
or edi, 0x200000
test bl, 2
je 0x398dcdb
or edi, 0x80000000
test bl, 4
je 0x398dce6
or edi, 0x8000000
test bl, 8
je 0x398dcf1
or edi, 0x20000000
test ebx, 0x800
je 0x398dcff
or edi, 0x10000000
test ebx, 0x4400
je 0x398dd0d
or edi, 0x2000000
test ebx, 0x1000
je 0x398dd1b
or edi, 0x4000000
mov eax, dword [esp + 0x1dc]
mov esi, dword [esp + 0x1e4]
and eax, 0x1ffff
or edi, eax
xor ebp, ebp
test esi, esi
jne 0x398dd3e
lea ebp, [esi + 2]
jmp 0x398de0e
cmp esi, 2
jne 0x398dd84
lea ebp, [esi - 1]
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.039744e0
cmp eax, 0xffffffff
jne 0x398ddac
call dword [0x3a5fd78]
cmp eax, 2
jne 0x398de0e
test bl, 1
je 0x398de0e
cmp esi, 3
je 0x398dd7a
cmp esi, eax
jne 0x398de0e
mov byte [esp + 0x17], 1
jmp 0x398de0e
cmp esi, 1
jne 0x398dd8e
lea ebp, [esi + 2]
jmp 0x398dd46
cmp esi, 3
jne 0x398dd98
lea ebp, [esi + 1]
jmp 0x398dd46
cmp esi, 4
jne 0x398dda2
lea ebp, [esi + 1]
jmp 0x398de0e
cmp esi, 5
jne 0x398de0e
lea ebp, [esi - 3]
jmp 0x398de0e
and eax, 0x10
je 0x398ddef
test bl, 0x40
je 0x398ddef
mov edx, dword [esp + 0x18]
mov dword [edx], 0xc00000ba
mov byte [esp + 0x1c0], 0
lea ecx, [esp + 0x6c]
call fcn.039ef660
mov dword [esp + 0x1c0], 0xffffffff
lea ecx, [esp + 0x110]
call fcn.039ef660
mov al, 1
jmp 0x398de88
test eax, eax
jne 0x398de08
test bl, 1
je 0x398de04
mov eax, dword [esp + 0x18]
mov dword [eax], 0xc0000103
jmp 0x398ddc0
test eax, eax
je 0x398de0e
or edi, 0x2000000
mov al, bl
and al, 1
mov byte [esp + 0x1f], al
je 0x398deb8
cmp esi, 1
je 0x398deb2
cmp esi, 3
je 0x398deb2
cmp esi, 2
je 0x398deb2
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
shr edx, 0x15
test dl, 1
je 0x398de5e
cmp dword [esp + 0x20], 0
je 0x398de5e
mov eax, dword [0x3a56b80]
push eax
push str.__FILE_DIRECTORY_FILE_
mov ecx, dword [esp + 0x28]
call fcn.039efdd0
mov byte [esp + 0x1c0], 0
lea ecx, [esp + 0x6c]
call fcn.039ef660
mov dword [esp + 0x1c0], 0xffffffff
lea ecx, [esp + 0x110]
call fcn.039ef660
xor al, al
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x1b0
ret 0x34
or edi, 0x2000000
shr ebx, 6
and bl, 1
mov byte [esp + 0x1e], bl
je 0x398df0c
cmp esi, 1
je 0x398df0c
cmp esi, 3
je 0x398df0c
cmp esi, 4
je 0x398df0c
cmp esi, 5
je 0x398df0c
cmp esi, 2
je 0x398df0c
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
shr edx, 0x15
test dl, 1
je 0x398de5e
cmp dword [esp + 0x20], 0
je 0x398de5e
mov eax, dword [0x3a56b80]
push eax
push str.__FILE_NON_DIRECTORY_FILE_
jmp 0x398de55
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
shr edx, 0x15
test dl, 1
je 0x398df37
cmp dword [esp + 0x20], 0
je 0x398df37
mov eax, dword [0x3a56b80]
mov ecx, dword [esp + 0x20]
push eax
push str._new_CreateFile_
call fcn.039efdd0
xor bl, bl
cmp byte [esp + 0x17], bl
je 0x398dfa7
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
shr edx, 1
push 0
and edx, 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x40], ecx
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x74]
push ecx
push edx
mov dword [esp + 0x48], 0xc
call fcn.0398bf20
add esp, 0x10
test al, al
je 0x398de5e
cmp dword [esp + 0x28], 0
jne 0x398dfa0
call dword [0x3a5fd78]
push eax
call fcn.03984020
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
jmp 0x398ddc0
mov bl, 1
mov ebp, 3
mov eax, dword [esp + 0x1e0]
mov ecx, dword [esp + 0x1cc]
push 7
push 0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x78]
push 0
push edi
push ebp
push 0
push eax
push ecx
push edx
call fcn.0398fe90
test al, al
je 0x398de5e
call dword [0x3a5fd78]
mov esi, eax
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x398e045
push 4
push 0x28
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call fcn.039ca210
mov edi, eax
mov eax, dword [esp + 0x24]
test edi, edi
jge 0x398e045
push eax
call fcn.0398a3b0
mov ecx, dword [esp + 0x18]
or esi, 0xffffffff
mov dword [esp + 0x24], esi
mov dword [ecx], edi
mov byte [esp + 0x1c0], 0
lea ecx, [esp + 0x6c]
call fcn.039ef660
mov dword [esp + 0x1c0], esi
lea ecx, [esp + 0x110]
call fcn.039ef660
mov al, 1
jmp 0x398de88
cmp byte [esp + 0x1f], 0
mov cl, byte [esp + 0x64]
je 0x398e06f
cmp eax, 0xffffffff
je 0x398e06f
test cl, 0x10
jne 0x398e06f
push eax
call fcn.0398a3b0
mov edx, dword [esp + 0x18]
mov dword [edx], 0xc0000103
jmp 0x398ddc0
mov dl, byte [esp + 0x1e]
test dl, dl
je 0x398e096
cmp eax, 0xffffffff
je 0x398e09b
test cl, 0x10
je 0x398e096
push eax
call fcn.0398a3b0
mov eax, dword [esp + 0x18]
mov dword [eax], 0xc00000ba
jmp 0x398ddc0
cmp eax, 0xffffffff
jne 0x398e0e5
test dl, dl
je 0x398e0d1
cmp esi, 3
jne 0x398e0d1
mov ecx, dword [esp + 0x6c]
push 7
push 0x10
push ecx
call fcn.03974d90
add esp, 0xc
test al, al
jne 0x398ddb6
push esi
call fcn.03984020
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
jmp 0x398ddc0
push esi
call fcn.03984020
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [edx], eax
jmp 0x398ddc0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [edx], 0
mov dword [eax], 0
test bl, bl
jne 0x398e121
cmp ebp, 2
jne 0x398e11c
sub esi, 0xb7
neg esi
sbb esi, esi
and esi, ebp
mov dword [eax + 4], esi
jmp 0x398ddc0
cmp ebp, 1
jne 0x398e12d
mov dword [eax + 4], 2
jmp 0x398ddc0
cmp ebp, 4
jne 0x398e146
xor ecx, ecx
cmp esi, 0xb7
setne cl
inc ecx
mov dword [eax + 4], ecx
jmp 0x398ddc0
cmp ebp, 3
jne 0x398e157
mov dword [eax + 4], 1
jmp 0x398ddc0
cmp ebp, 5
jne 0x398ddc0
mov dword [eax + 4], 3
jmp 0x398ddc0