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

Disassembly:
push 0xffffffffffffffff
push 0x497d28
mov eax, dword fs:[0]
push eax
mov eax, 0x4160
call fcn.004675b0
mov eax, dword [0x4bba40]
xor eax, esp
mov dword [esp + 0x4158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bba40]
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.004637c2
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.00430ee0
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 0x431263
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x138]
call fcn.004055f0
lea eax, [esp + 0x130]
lea ecx, [esp + 0x48]
mov dword [esp + 0x417c], ebx
call fcn.00433210
mov ecx, eax
mov byte [esp + 0x417c], 1
mov eax, dword [ecx + 0x14]
push 0x4a24b4
mov edi, 1
call fcn.00431d10
test eax, eax
setne byte [esp + 0x1b]
mov byte [esp + 0x417c], 0
cmp dword [esp + 0x60], 8
jb 0x4312d6
mov edx, dword [esp + 0x4c]
push edx
call fcn.004440dd
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x4312f0
push 1
push 0x4a24b4
lea esi, [esp + 0x138]
call fcn.00431b40
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 0x431310
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431310
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x50]
call fcn.004055f0
lea ecx, [esp + 0x48]
lea esi, [esp + 0x114]
mov byte [esp + 0x417c], 2
call fcn.00426320
mov edi, 8
mov byte [esp + 0x417c], 4
cmp dword [esp + 0x60], edi
jb 0x431362
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004440dd
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.004262b0
mov byte [esp + 0x417c], 5
mov edx, dword [esp + 0xfc]
cmp dword [esp + 0x110], edi
jae 0x4313a7
lea edx, [esp + 0xfc]
call fcn.00430c40
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], 0x435a90
mov dword [esp + 0x30], 0x435ab0
mov dword [esp + 0x84], 0x435a90
mov dword [esp + 0x88], 0x435ab0
cmp dword [esp + 0x12c], esi
jae 0x431418
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 0x431507
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x431507
cmp dword [esp + 0xf4], edi
jb 0x431463
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.004440dd
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 0x431499
mov eax, dword [esp + 0xfc]
push eax
call fcn.004440dd
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 0x4314ca
mov edx, dword [esp + 0x118]
push edx
call fcn.004440dd
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x4314fd
mov eax, dword [esp + 0x134]
push eax
call fcn.004440dd
add esp, 4
mov eax, 1
jmp 0x431b0d
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], 0x435a40
mov dword [esp + 0x74], 0x435a70
mov dword [esp + 0x14c], 0x4383a0
mov dword [esp + 0x150], 0x438400
mov dword [esp + 0x154], 0x438410
mov dword [esp + 0x158], 0x438470
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x164], ebx
mov dword [esp + 0x160], ebx
call fcn.00438490
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.00437ce0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x431603
lea edi, [esp + 0x2c]
lea eax, [esp + 0x8c]
call fcn.00435ca0
mov dword [esp + 0x20], esi
cmp esi, ebx
jne 0x431953
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 0x431940
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 0x431689
push ebp
call fcn.0046383d
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x44], esi
test eax, eax
je 0x43192c
push eax
call fcn.0046391a
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x43192e
mov eax, dword [edi + ebx*4]
mov ecx, dword [edi + ebx*4 + 4]
sub ecx, eax
test ebp, ebp
je 0x4316bf
mov edx, dword [esp + 0xd0]
lea edx, [edx + eax*2]
test ecx, ecx
jbe 0x4316bf
mov eax, ebp
sub edx, ebp
jmp 0x4316b0
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x4316b0
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x19], 0
jne 0x431719
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.00438100
add esp, 0x24
mov dword [esp + 0x20], eax
test eax, eax
jne 0x431940
mov eax, dword [esp + 0x24]
add dword [esp + 0x3c], eax
mov ebx, 0
adc dword [esp + 0x40], ebx
cmp word [ebp], bx
je 0x4317cc
mov esi, ebp
cmp word [esi], 0x2f
jne 0x4317bb
xor ecx, ecx
mov word [esi], cx
mov edx, ebp
lea ecx, [esp + 0xf8]
lea edi, [esp + 0x48]
call fcn.00431c50
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x4188], 7
call fcn.00405810
mov byte [esp + 0x417c], 6
cmp dword [esp + 0x60], 8
jb 0x431788
mov edx, dword [esp + 0x4c]
push edx
call fcn.004440dd
add esp, 4
cmp dword [esp + 0xf4], 8
mov eax, dword [esp + 0xe0]
jae 0x4317a0
lea eax, [esp + 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4317b3
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 0x431736
mov edx, ebp
lea ecx, [esp + 0xf8]
lea edi, [esp + 0x48]
call fcn.00431c50
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x4188], 8
call fcn.00405810
mov esi, 8
mov byte [esp + 0x417c], 6
cmp dword [esp + 0x60], esi
jb 0x431817
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004440dd
add esp, 4
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x19], 0
mov eax, dword [esp + 0xe0]
je 0x431854
cmp dword [esp + 0xf4], esi
jae 0x431838
lea eax, [esp + 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43190e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43190e
cmp dword [esp + 0xf4], esi
jae 0x431864
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 0x431896
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x431938
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.00435930
add esp, 4
test eax, eax
jne 0x431938
cmp dword [esp + 0x24], ebx
jne 0x431938
cmp esi, 0xffffffff
je 0x4318dd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4318dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x431938
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x1d], 0
je 0x43190e
cmp dword [esp + 0xf4], 8
mov eax, dword [esp + 0xe0]
jae 0x4318ff
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 0x431940
mov ebx, eax
jmp 0x431640
xor ebp, ebp
mov dword [esp + 0x20], 2
jmp 0x431940
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.00435ca0
push ebp
call fcn.0046383d
mov eax, dword [esp + 0x7c]
add esp, 4
cmp eax, 0xffffffff
je 0x431995
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43198d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431995
mov dword [esp + 0x78], 0xffffffff
mov ebp, dword [esp + 0x20]
mov edi, 8
cmp ebp, ebx
jne 0x431a5c
cmp dword [esp + 0xf4], edi
jb 0x4319bf
mov edx, dword [esp + 0xe0]
push edx
call fcn.004440dd
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 0x4319f0
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.004440dd
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 0x431a22
mov eax, dword [esp + 0x118]
push eax
call fcn.004440dd
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x431a55
mov ecx, dword [esp + 0x134]
push ecx
call fcn.004440dd
add esp, 4
xor eax, eax
jmp 0x431b0d
cmp dword [esp + 0xf4], edi
jb 0x431a75
mov edx, dword [esp + 0xe0]
push edx
call fcn.004440dd
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 0x431aa6
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.004440dd
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 0x431ad8
mov eax, dword [esp + 0x118]
push eax
call fcn.004440dd
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x431b0b
mov ecx, dword [esp + 0x134]
push ecx
call fcn.004440dd
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.00462d06
add esp, 0x416c
ret