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

Disassembly:
push 0xffffffffffffffff
push 0x4741f8
mov eax, dword fs:[0]
push eax
mov eax, 0x415c
call fcn.00459b60
mov eax, dword [0x48f900]
xor eax, esp
mov dword [esp + 0x4158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48f900]
xor eax, esp
push eax
lea eax, [esp + 0x4170]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
mov ebx, ecx
mov esi, edx
call fcn.00458293
add esp, 4
push ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
call fcn.0042c660
add esp, 4
xor eax, eax
mov word [esp + 0x134], ax
mov eax, esi
mov dword [esp + 0x148], 7
mov dword [esp + 0x144], ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42c9e0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x134]
call fcn.00405430
mov eax, esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x4178], ebp
call fcn.0042dc00
mov ecx, eax
mov byte [esp + 0x4178], 1
mov eax, dword [ecx + 0x14]
push 0x47d414
mov edi, 1
call fcn.0042d460
test eax, eax
mov edi, 8
setne byte [esp + 0x1b]
mov byte [esp + 0x4178], 0
cmp dword [esp + 0x60], edi
jb 0x42ca53
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00439598
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x42ca6d
push 1
mov eax, 0x47d414
lea ecx, [esp + 0x134]
call fcn.0042d2c0
xor edx, edx
mov eax, ebx
mov word [esp + 0x4c], dx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42ca85
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x4c]
call fcn.00405430
mov ecx, esi
lea esi, [esp + 0x114]
mov byte [esp + 0x4178], 2
call fcn.00422440
mov byte [esp + 0x4178], 4
cmp dword [esp + 0x60], edi
jb 0x42cad1
mov eax, dword [esp + 0x4c]
push eax
call fcn.00439598
add esp, 4
lea edx, [esp + 0x130]
xor ecx, ecx
push edx
lea esi, [esp + 0xfc]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], cx
call fcn.004223d0
add esp, 4
mov byte [esp + 0x4178], 5
mov eax, dword [esp + 0xfc]
cmp dword [esp + 0x110], edi
jae 0x42cb1a
lea eax, [esp + 0xfc]
push eax
call fcn.0042c2b0
mov edi, 7
xor eax, eax
add esp, 4
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebp
mov word [esp + 0xe0], ax
mov byte [esp + 0x4178], 6
mov eax, dword [esp + 0x118]
xor ebx, ebx
cmp dword [esp + 0x12c], 0x10
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], 0x42e5e0
mov dword [esp + 0x30], 0x41bb00
mov dword [esp + 0x84], 0x42e5e0
mov dword [esp + 0x88], 0x41bb00
jae 0x42cb8c
lea eax, [esp + 0x118]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x78], eax
cmp eax, 0xffffffff
jne 0x42cc7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
je 0x42cc7b
mov esi, 8
cmp dword [esp + 0xf4], esi
jb 0x42cbdc
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00439598
add esp, 4
xor edx, edx
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebp
mov word [esp + 0xe0], dx
cmp dword [esp + 0x110], esi
jb 0x42cc0d
mov eax, dword [esp + 0xfc]
push eax
call fcn.00439598
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x12c], 0x10
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebp
mov word [esp + 0xfc], cx
jb 0x42cc3f
mov edx, dword [esp + 0x118]
push edx
call fcn.00439598
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebp
mov byte [esp + 0x118], bl
cmp dword [esp + 0x148], esi
jb 0x42cc71
mov eax, dword [esp + 0x134]
push eax
call fcn.00439598
add esp, 4
mov eax, 1
jmp 0x42d28b
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], 0x42e590
mov dword [esp + 0x74], 0x42e5c0
mov dword [esp + 0x14c], 0x430ee0
mov dword [esp + 0x150], 0x430f40
mov dword [esp + 0x154], 0x430f50
mov dword [esp + 0x158], 0x430fb0
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x164], ebp
mov dword [esp + 0x160], ebp
call fcn.00430fd0
lea edx, [esp + 0x14c]
push edx
lea eax, [esp + 0x90]
push eax
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xdc], ebp
call fcn.00430820
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x42cd77
lea edi, [esp + 0x2c]
lea eax, [esp + 0x8c]
call fcn.0042e7e0
mov dword [esp + 0x1c], esi
cmp esi, ebp
jne 0x42d0c7
xor edi, edi
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x28], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x38], edi
cmp dword [esp + 0xa8], ebp
jbe 0x42d0b4
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x24], ecx
mov ebp, dword [esp + 0xcc]
mov esi, dword [ebp + edi*4 + 4]
sub esi, dword [ebp + edi*4]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], eax
cmp esi, dword [esp + 0x34]
jbe 0x42cdfb
push ebx
call fcn.0045830e
add esp, 4
mov dword [esp + 0x34], esi
add esi, esi
je 0x42d0a0
push esi
call fcn.004583eb
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42d0a2
mov eax, dword [ebp + edi*4]
mov ecx, dword [ebp + edi*4 + 4]
sub ecx, eax
test ebx, ebx
je 0x42ce2f
mov edx, dword [esp + 0xd0]
lea edx, [edx + eax*2]
test ecx, ecx
jbe 0x42ce2f
mov eax, ebx
sub edx, ebx
jmp 0x42ce20
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x42ce20
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x19], 0
jne 0x42ce89
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
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 edi
push edx
lea eax, [esp + 0xb0]
call fcn.00430c40
add esp, 0x24
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x42d0b4
mov eax, dword [esp + 0x20]
add dword [esp + 0x3c], eax
mov ebp, 0
adc dword [esp + 0x40], ebp
cmp word [ebx], bp
je 0x42cf41
mov edi, ebx
cmp word [edi], 0x2f
jne 0x42cf32
lea edx, [esp + 0xf8]
xor ecx, ecx
push edx
lea esi, [esp + 0x4c]
mov word [edi], cx
call fcn.0042d3a0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x4180], 7
call fcn.00405610
mov esi, 8
mov byte [esp + 0x4178], 6
cmp dword [esp + 0x60], esi
jb 0x42cf00
mov eax, dword [esp + 0x4c]
push eax
call fcn.00439598
add esp, 4
mov eax, dword [esp + 0xe0]
cmp dword [esp + 0xf4], esi
jae 0x42cf17
lea eax, [esp + 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42cf2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x5c
mov word [edi], cx
inc ebp
cmp word [ebx + ebp*2], 0
lea edi, [ebx + ebp*2]
jne 0x42cea5
lea edx, [esp + 0xf8]
push edx
lea esi, [esp + 0x4c]
call fcn.0042d3a0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xe4]
mov esi, 8
mov byte [esp + 0x4180], 8
call fcn.00405610
mov byte [esp + 0x4178], 6
cmp dword [esp + 0x60], esi
jb 0x42cf8d
mov eax, dword [esp + 0x4c]
push eax
call fcn.00439598
add esp, 4
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x19], 0
mov eax, dword [esp + 0xe0]
je 0x42cfca
cmp dword [esp + 0xf4], esi
jae 0x42cfae
lea eax, [esp + 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42d084
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42d084
cmp dword [esp + 0xf4], esi
jae 0x42cfda
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 0x42d00c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42d0ac
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x64]
add eax, edx
push ecx
lea edi, [esp + 0x24]
mov dword [esp + 0x24], ebp
call fcn.0042e480
add esp, 4
test eax, eax
jne 0x42d0ac
cmp dword [esp + 0x20], ebp
jne 0x42d0ac
cmp esi, 0xffffffff
je 0x42d053
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42d053
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42d0ac
mov edx, dword [esp + 0x24]
cmp byte [edx + 0x1d], 0
je 0x42d084
cmp dword [esp + 0xf4], 8
mov eax, dword [esp + 0xe0]
jae 0x42d075
lea eax, [esp + 0xe0]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [esp + 0x38]
add dword [esp + 0x24], 0x20
inc edi
mov dword [esp + 0x38], edi
cmp edi, dword [esp + 0xa8]
jae 0x42d0b4
jmp 0x42cdb4
xor ebx, ebx
mov dword [esp + 0x1c], 2
jmp 0x42d0b4
mov dword [esp + 0x1c], 0xb
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [esp + 0x38]
add esp, 8
xor ebp, ebp
lea edi, [esp + 0x2c]
lea eax, [esp + 0x8c]
call fcn.0042e7e0
push ebx
call fcn.0045830e
mov eax, dword [esp + 0x7c]
add esp, 4
cmp eax, 0xffffffff
je 0x42d104
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42d0fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42d104
mov dword [esp + 0x78], 0xffffffff
mov ebx, dword [esp + 0x1c]
cmp ebx, ebp
jne 0x42d1d0
mov esi, 8
cmp dword [esp + 0xf4], esi
jb 0x42d12e
mov edx, dword [esp + 0xe0]
push edx
call fcn.00439598
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebp
mov word [esp + 0xe0], ax
cmp dword [esp + 0x110], esi
jb 0x42d164
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00439598
add esp, 4
xor edx, edx
cmp dword [esp + 0x12c], 0x10
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebp
mov word [esp + 0xfc], dx
jb 0x42d196
mov eax, dword [esp + 0x118]
push eax
call fcn.00439598
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebp
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], esi
jb 0x42d1c9
mov ecx, dword [esp + 0x134]
push ecx
call fcn.00439598
add esp, 4
xor eax, eax
jmp 0x42d28b
mov edi, 8
cmp dword [esp + 0xf4], edi
jb 0x42d1ee
mov edx, dword [esp + 0xe0]
push edx
call fcn.00439598
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebp
mov word [esp + 0xe0], ax
cmp dword [esp + 0x110], edi
jb 0x42d224
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00439598
add esp, 4
xor edx, edx
cmp dword [esp + 0x12c], 0x10
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebp
mov word [esp + 0xfc], dx
jb 0x42d256
mov eax, dword [esp + 0x118]
push eax
call fcn.00439598
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebp
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x42d289
mov ecx, dword [esp + 0x134]
push ecx
call fcn.00439598
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x4170]
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.00457861
add esp, 0x4168
ret