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

Disassembly:
push 0xffffffffffffffff
push 0x495d48
mov eax, dword fs:[0]
push eax
mov eax, 0x4160
call fcn.00465450
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.00461726
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.00430cd0
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 0x431053
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.00432c40
mov ecx, eax
mov byte [esp + 0x417c], 1
mov eax, dword [ecx + 0x14]
push 0x4a03f4
mov edi, 1
call fcn.00431b00
test eax, eax
setne byte [esp + 0x1b]
mov byte [esp + 0x417c], 0
cmp dword [esp + 0x60], 8
jb 0x4310c6
mov edx, dword [esp + 0x4c]
push edx
call fcn.00441f68
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x4310e0
push 1
push 0x4a03f4
lea esi, [esp + 0x138]
call fcn.00431930
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 0x431100
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431100
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.00426270
mov edi, 8
mov byte [esp + 0x417c], 4
cmp dword [esp + 0x60], edi
jb 0x431152
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00441f68
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.00426200
mov byte [esp + 0x417c], 5
mov edx, dword [esp + 0xfc]
cmp dword [esp + 0x110], edi
jae 0x431197
lea edx, [esp + 0xfc]
call fcn.00430a30
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], 0x4354b0
mov dword [esp + 0x30], 0x4354d0
mov dword [esp + 0x84], 0x4354b0
mov dword [esp + 0x88], 0x4354d0
cmp dword [esp + 0x12c], esi
jae 0x431208
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 0x4312f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4312f7
cmp dword [esp + 0xf4], edi
jb 0x431253
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00441f68
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 0x431289
mov eax, dword [esp + 0xfc]
push eax
call fcn.00441f68
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 0x4312ba
mov edx, dword [esp + 0x118]
push edx
call fcn.00441f68
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x4312ed
mov eax, dword [esp + 0x134]
push eax
call fcn.00441f68
add esp, 4
mov eax, 1
jmp 0x4318fd
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], 0x435460
mov dword [esp + 0x74], 0x435490
mov dword [esp + 0x14c], 0x437dc0
mov dword [esp + 0x150], 0x437e20
mov dword [esp + 0x154], 0x437e30
mov dword [esp + 0x158], 0x437e90
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x164], ebx
mov dword [esp + 0x160], ebx
call fcn.00437eb0
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.00437700
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4313f3
lea edi, [esp + 0x2c]
lea eax, [esp + 0x8c]
call fcn.004356c0
mov dword [esp + 0x20], esi
cmp esi, ebx
jne 0x431743
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 0x431730
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 0x431479
push ebp
call fcn.004617a1
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x44], esi
test eax, eax
je 0x43171c
push eax
call fcn.0046187e
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x43171e
mov eax, dword [edi + ebx*4]
mov ecx, dword [edi + ebx*4 + 4]
sub ecx, eax
test ebp, ebp
je 0x4314af
mov edx, dword [esp + 0xd0]
lea edx, [edx + eax*2]
test ecx, ecx
jbe 0x4314af
mov eax, ebp
sub edx, ebp
jmp 0x4314a0
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x4314a0
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x19], 0
jne 0x431509
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.00437b20
add esp, 0x24
mov dword [esp + 0x20], eax
test eax, eax
jne 0x431730
mov eax, dword [esp + 0x24]
add dword [esp + 0x3c], eax
mov ebx, 0
adc dword [esp + 0x40], ebx
cmp word [ebp], bx
je 0x4315bc
mov esi, ebp
cmp word [esi], 0x2f
jne 0x4315ab
xor ecx, ecx
mov word [esi], cx
mov edx, ebp
lea ecx, [esp + 0xf8]
lea edi, [esp + 0x48]
call fcn.00431a40
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 0x431578
mov edx, dword [esp + 0x4c]
push edx
call fcn.00441f68
add esp, 4
cmp dword [esp + 0xf4], 8
mov eax, dword [esp + 0xe0]
jae 0x431590
lea eax, [esp + 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4315a3
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 0x431526
mov edx, ebp
lea ecx, [esp + 0xf8]
lea edi, [esp + 0x48]
call fcn.00431a40
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 0x431607
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00441f68
add esp, 4
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x19], 0
mov eax, dword [esp + 0xe0]
je 0x431644
cmp dword [esp + 0xf4], esi
jae 0x431628
lea eax, [esp + 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4316fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4316fe
cmp dword [esp + 0xf4], esi
jae 0x431654
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 0x431686
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x431728
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.00435350
add esp, 4
test eax, eax
jne 0x431728
cmp dword [esp + 0x24], ebx
jne 0x431728
cmp esi, 0xffffffff
je 0x4316cd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4316cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x431728
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x1d], 0
je 0x4316fe
cmp dword [esp + 0xf4], 8
mov eax, dword [esp + 0xe0]
jae 0x4316ef
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 0x431730
mov ebx, eax
jmp 0x431430
xor ebp, ebp
mov dword [esp + 0x20], 2
jmp 0x431730
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.004356c0
push ebp
call fcn.004617a1
mov eax, dword [esp + 0x7c]
add esp, 4
cmp eax, 0xffffffff
je 0x431785
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43177d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431785
mov dword [esp + 0x78], 0xffffffff
mov ebp, dword [esp + 0x20]
mov edi, 8
cmp ebp, ebx
jne 0x43184c
cmp dword [esp + 0xf4], edi
jb 0x4317af
mov edx, dword [esp + 0xe0]
push edx
call fcn.00441f68
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 0x4317e0
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00441f68
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 0x431812
mov eax, dword [esp + 0x118]
push eax
call fcn.00441f68
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x431845
mov ecx, dword [esp + 0x134]
push ecx
call fcn.00441f68
add esp, 4
xor eax, eax
jmp 0x4318fd
cmp dword [esp + 0xf4], edi
jb 0x431865
mov edx, dword [esp + 0xe0]
push edx
call fcn.00441f68
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 0x431896
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00441f68
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 0x4318c8
mov eax, dword [esp + 0x118]
push eax
call fcn.00441f68
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x4318fb
mov ecx, dword [esp + 0x134]
push ecx
call fcn.00441f68
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.00460ba5
add esp, 0x416c
ret