Function at 0x4314b0
Capabilities:
Create directory
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4961b8
mov eax, dword fs:[0]
push eax
mov eax, 0x4160
call fcn.00465940
mov eax, dword [0x4b9a40]
xor eax, esp
mov dword [esp + 0x4158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x4174]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4184]
xor ebx, ebx
push ebx
mov esi, ecx
call fcn.00461c16
lea eax, [esp + 0x68]
add esp, 4
push eax
mov ecx, ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.004311c0
add esp, 4
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x148], 7
mov dword [esp + 0x144], ebx
mov word [esp + 0x134], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431543
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x138]
call fcn.00405e40
lea eax, [esp + 0x130]
lea ecx, [esp + 0x48]
mov dword [esp + 0x417c], ebx
call fcn.00433130
mov ecx, eax
mov byte [esp + 0x417c], 1
mov eax, dword [ecx + 0x14]
push 0x4a03ec
mov edi, 1
call fcn.00431ff0
test eax, eax
setne byte [esp + 0x1b]
mov byte [esp + 0x417c], 0
cmp dword [esp + 0x60], 8
jb 0x4315b6
mov edx, dword [esp + 0x4c]
push edx
call fcn.00442458
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x4315d0
push 1
push 0x4a03ec
lea esi, [esp + 0x138]
call fcn.00431e20
xor eax, eax
mov word [esp + 0x4c], ax
mov eax, ebp
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
lea edx, [eax + 2]
jmp 0x4315f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4315f0
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x50]
call fcn.00405e40
lea ecx, [esp + 0x48]
lea esi, [esp + 0x114]
mov byte [esp + 0x417c], 2
call fcn.00426740
mov edi, 8
mov byte [esp + 0x417c], 4
cmp dword [esp + 0x60], edi
jb 0x431642
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00442458
add esp, 4
xor edx, edx
mov word [esp + 0x4c], dx
lea edx, [esp + 0x130]
lea esi, [esp + 0xf8]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
call fcn.004266d0
mov byte [esp + 0x417c], 5
mov edx, dword [esp + 0xfc]
cmp dword [esp + 0x110], edi
jae 0x431687
lea edx, [esp + 0xfc]
call fcn.00430f20
xor eax, eax
mov dword [esp + 0xf4], 7
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], ax
mov byte [esp + 0x417c], 6
mov eax, dword [esp + 0x118]
mov esi, 0x10
xor ebp, ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], 0x4359a0
mov dword [esp + 0x30], 0x4359c0
mov dword [esp + 0x84], 0x4359a0
mov dword [esp + 0x88], 0x4359c0
cmp dword [esp + 0x12c], esi
jae 0x4316f8
lea eax, [esp + 0x118]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x78], eax
cmp eax, 0xffffffff
jne 0x4317e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4317e7
cmp dword [esp + 0xf4], edi
jb 0x431743
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00442458
add esp, 4
xor edx, edx
mov ebp, 7
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], dx
cmp dword [esp + 0x110], edi
jb 0x431779
mov eax, dword [esp + 0xfc]
push eax
call fcn.00442458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x110], ebp
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], cx
cmp dword [esp + 0x12c], esi
jb 0x4317aa
mov edx, dword [esp + 0x118]
push edx
call fcn.00442458
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x4317dd
mov eax, dword [esp + 0x134]
push eax
call fcn.00442458
add esp, 4
mov eax, 1
jmp 0x431ded
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], 0x435950
mov dword [esp + 0x74], 0x435980
mov dword [esp + 0x14c], 0x4382b0
mov dword [esp + 0x150], 0x438310
mov dword [esp + 0x154], 0x438320
mov dword [esp + 0x158], 0x438380
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x164], ebx
mov dword [esp + 0x160], ebx
call fcn.004383a0
lea edx, [esp + 0x14c]
push edx
lea eax, [esp + 0x90]
push eax
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
call fcn.00437bf0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4318e3
lea edi, [esp + 0x2c]
lea eax, [esp + 0x8c]
call fcn.00435bb0
mov dword [esp + 0x20], esi
cmp esi, ebx
jne 0x431c33
xor ebx, ebx
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x34], ebx
cmp dword [esp + 0xa8], ebx
jbe 0x431c20
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0xcc]
mov esi, dword [edi + ebx*4 + 4]
sub esi, dword [edi + ebx*4]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
cmp esi, dword [esp + 0x44]
jbe 0x431969
push ebp
call fcn.00461c91
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x44], esi
test eax, eax
je 0x431c0c
push eax
call fcn.00461d6e
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x431c0e
mov eax, dword [edi + ebx*4]
mov ecx, dword [edi + ebx*4 + 4]
sub ecx, eax
test ebp, ebp
je 0x43199f
mov edx, dword [esp + 0xd0]
lea edx, [edx + eax*2]
test ecx, ecx
jbe 0x43199f
mov eax, ebp
sub edx, ebp
jmp 0x431990
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x431990
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x19], 0
jne 0x4319f9
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x168]
push ebx
push edx
lea eax, [esp + 0xb0]
call fcn.00438010
add esp, 0x24
mov dword [esp + 0x20], eax
test eax, eax
jne 0x431c20
mov eax, dword [esp + 0x24]
add dword [esp + 0x3c], eax
mov ebx, 0
adc dword [esp + 0x40], ebx
cmp word [ebp], bx
je 0x431aac
mov esi, ebp
cmp word [esi], 0x2f
jne 0x431a9b
xor ecx, ecx
mov word [esi], cx
mov edx, ebp
lea ecx, [esp + 0xf8]
lea edi, [esp + 0x48]
call fcn.00431f30
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x4188], 7
call fcn.00406060
mov byte [esp + 0x417c], 6
cmp dword [esp + 0x60], 8
jb 0x431a68
mov edx, dword [esp + 0x4c]
push edx
call fcn.00442458
add esp, 4
cmp dword [esp + 0xf4], 8
mov eax, dword [esp + 0xe0]
jae 0x431a80
lea eax, [esp + 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x431a93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x5c
mov word [esi], ax
inc ebx
cmp word [ebp + ebx*2], 0
lea esi, [ebp + ebx*2]
jne 0x431a16
mov edx, ebp
lea ecx, [esp + 0xf8]
lea edi, [esp + 0x48]
call fcn.00431f30
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x4188], 8
call fcn.00406060
mov esi, 8
mov byte [esp + 0x417c], 6
cmp dword [esp + 0x60], esi
jb 0x431af7
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00442458
add esp, 4
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x19], 0
mov eax, dword [esp + 0xe0]
je 0x431b34
cmp dword [esp + 0xf4], esi
jae 0x431b18
lea eax, [esp + 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x431bee
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431bee
cmp dword [esp + 0xf4], esi
jae 0x431b44
lea eax, [esp + 0xe0]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x64], esi
cmp esi, 0xffffffff
jne 0x431b76
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x431c18
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x64]
add eax, ecx
push edx
lea edi, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.00435840
add esp, 4
test eax, eax
jne 0x431c18
cmp dword [esp + 0x24], ebx
jne 0x431c18
cmp esi, 0xffffffff
je 0x431bbd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x431bbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x431c18
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x1d], 0
je 0x431bee
cmp dword [esp + 0xf4], 8
mov eax, dword [esp + 0xe0]
jae 0x431bdf
lea eax, [esp + 0xe0]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], 0x20
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0xa8]
jae 0x431c20
mov ebx, eax
jmp 0x431920
xor ebp, ebp
mov dword [esp + 0x20], 2
jmp 0x431c20
mov dword [esp + 0x20], 0xb
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [esp + 0x38]
add esp, 8
xor ebx, ebx
lea edi, [esp + 0x2c]
lea eax, [esp + 0x8c]
mov esi, 7
call fcn.00435bb0
push ebp
call fcn.00461c91
mov eax, dword [esp + 0x7c]
add esp, 4
cmp eax, 0xffffffff
je 0x431c75
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x431c6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431c75
mov dword [esp + 0x78], 0xffffffff
mov ebp, dword [esp + 0x20]
mov edi, 8
cmp ebp, ebx
jne 0x431d3c
cmp dword [esp + 0xf4], edi
jb 0x431c9f
mov edx, dword [esp + 0xe0]
push edx
call fcn.00442458
add esp, 4
xor eax, eax
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], ax
cmp dword [esp + 0x110], edi
jb 0x431cd0
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00442458
add esp, 4
xor edx, edx
cmp dword [esp + 0x12c], 0x10
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], dx
jb 0x431d02
mov eax, dword [esp + 0x118]
push eax
call fcn.00442458
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x431d35
mov ecx, dword [esp + 0x134]
push ecx
call fcn.00442458
add esp, 4
xor eax, eax
jmp 0x431ded
cmp dword [esp + 0xf4], edi
jb 0x431d55
mov edx, dword [esp + 0xe0]
push edx
call fcn.00442458
add esp, 4
xor eax, eax
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], ax
cmp dword [esp + 0x110], edi
jb 0x431d86
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00442458
add esp, 4
xor edx, edx
cmp dword [esp + 0x12c], 0x10
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], dx
jb 0x431db8
mov eax, dword [esp + 0x118]
push eax
call fcn.00442458
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x431deb
mov ecx, dword [esp + 0x134]
push ecx
call fcn.00442458
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x4174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4158]
xor ecx, esp
call fcn.00461095
add esp, 0x416c
ret