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

Disassembly:
push 0xffffffffffffffff
push 0x496988
mov eax, dword fs:[0]
push eax
mov eax, 0x4160
call fcn.00466340
mov eax, dword [0x4b8a40]
xor eax, esp
mov dword [esp + 0x4158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b8a40]
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.00462555
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.0042fdb0
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 0x430133
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.00432010
mov ecx, eax
mov byte [esp + 0x417c], 1
mov eax, dword [ecx + 0x14]
push 0x4a04bc
mov edi, 1
call fcn.00430be0
test eax, eax
setne byte [esp + 0x1b]
mov byte [esp + 0x417c], 0
cmp dword [esp + 0x60], 8
jb 0x4301a6
mov edx, dword [esp + 0x4c]
push edx
call fcn.00442e6d
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x4301c0
push 1
push 0x4a04bc
lea esi, [esp + 0x138]
call fcn.00430a10
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 0x4301e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4301e0
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.00425250
mov edi, 8
mov byte [esp + 0x417c], 4
cmp dword [esp + 0x60], edi
jb 0x430232
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00442e6d
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.004251e0
mov byte [esp + 0x417c], 5
mov edx, dword [esp + 0xfc]
cmp dword [esp + 0x110], edi
jae 0x430277
lea edx, [esp + 0xfc]
call fcn.0042fb10
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], 0x4348a0
mov dword [esp + 0x30], 0x41a4a0
mov dword [esp + 0x84], 0x4348a0
mov dword [esp + 0x88], 0x41a4a0
cmp dword [esp + 0x12c], esi
jae 0x4302e8
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 0x4303d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4303d7
cmp dword [esp + 0xf4], edi
jb 0x430333
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00442e6d
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 0x430369
mov eax, dword [esp + 0xfc]
push eax
call fcn.00442e6d
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 0x43039a
mov edx, dword [esp + 0x118]
push edx
call fcn.00442e6d
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x4303cd
mov eax, dword [esp + 0x134]
push eax
call fcn.00442e6d
add esp, 4
mov eax, 1
jmp 0x4309dd
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], 0x434850
mov dword [esp + 0x74], 0x434880
mov dword [esp + 0x14c], 0x4371a0
mov dword [esp + 0x150], 0x437200
mov dword [esp + 0x154], 0x437210
mov dword [esp + 0x158], 0x437270
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x164], ebx
mov dword [esp + 0x160], ebx
call fcn.00437290
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.00436ae0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4304d3
lea edi, [esp + 0x2c]
lea eax, [esp + 0x8c]
call fcn.00434aa0
mov dword [esp + 0x20], esi
cmp esi, ebx
jne 0x430823
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 0x430810
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 0x430559
push ebp
call fcn.004625d0
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x44], esi
test eax, eax
je 0x4307fc
push eax
call fcn.004626ad
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4307fe
mov eax, dword [edi + ebx*4]
mov ecx, dword [edi + ebx*4 + 4]
sub ecx, eax
test ebp, ebp
je 0x43058f
mov edx, dword [esp + 0xd0]
lea edx, [edx + eax*2]
test ecx, ecx
jbe 0x43058f
mov eax, ebp
sub edx, ebp
jmp 0x430580
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x430580
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x19], 0
jne 0x4305e9
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.00436f00
add esp, 0x24
mov dword [esp + 0x20], eax
test eax, eax
jne 0x430810
mov eax, dword [esp + 0x24]
add dword [esp + 0x3c], eax
mov ebx, 0
adc dword [esp + 0x40], ebx
cmp word [ebp], bx
je 0x43069c
mov esi, ebp
cmp word [esi], 0x2f
jne 0x43068b
xor ecx, ecx
mov word [esi], cx
mov edx, ebp
lea ecx, [esp + 0xf8]
lea edi, [esp + 0x48]
call fcn.00430b20
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 0x430658
mov edx, dword [esp + 0x4c]
push edx
call fcn.00442e6d
add esp, 4
cmp dword [esp + 0xf4], 8
mov eax, dword [esp + 0xe0]
jae 0x430670
lea eax, [esp + 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x430683
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 0x430606
mov edx, ebp
lea ecx, [esp + 0xf8]
lea edi, [esp + 0x48]
call fcn.00430b20
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 0x4306e7
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00442e6d
add esp, 4
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x19], 0
mov eax, dword [esp + 0xe0]
je 0x430724
cmp dword [esp + 0xf4], esi
jae 0x430708
lea eax, [esp + 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4307de
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4307de
cmp dword [esp + 0xf4], esi
jae 0x430734
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 0x430766
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x430808
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.00434740
add esp, 4
test eax, eax
jne 0x430808
cmp dword [esp + 0x24], ebx
jne 0x430808
cmp esi, 0xffffffff
je 0x4307ad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4307ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x430808
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x1d], 0
je 0x4307de
cmp dword [esp + 0xf4], 8
mov eax, dword [esp + 0xe0]
jae 0x4307cf
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 0x430810
mov ebx, eax
jmp 0x430510
xor ebp, ebp
mov dword [esp + 0x20], 2
jmp 0x430810
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.00434aa0
push ebp
call fcn.004625d0
mov eax, dword [esp + 0x7c]
add esp, 4
cmp eax, 0xffffffff
je 0x430865
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43085d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x430865
mov dword [esp + 0x78], 0xffffffff
mov ebp, dword [esp + 0x20]
mov edi, 8
cmp ebp, ebx
jne 0x43092c
cmp dword [esp + 0xf4], edi
jb 0x43088f
mov edx, dword [esp + 0xe0]
push edx
call fcn.00442e6d
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 0x4308c0
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00442e6d
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 0x4308f2
mov eax, dword [esp + 0x118]
push eax
call fcn.00442e6d
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x430925
mov ecx, dword [esp + 0x134]
push ecx
call fcn.00442e6d
add esp, 4
xor eax, eax
jmp 0x4309dd
cmp dword [esp + 0xf4], edi
jb 0x430945
mov edx, dword [esp + 0xe0]
push edx
call fcn.00442e6d
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 0x430976
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00442e6d
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 0x4309a8
mov eax, dword [esp + 0x118]
push eax
call fcn.00442e6d
add esp, 4
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], 0
cmp dword [esp + 0x148], edi
jb 0x4309db
mov ecx, dword [esp + 0x134]
push ecx
call fcn.00442e6d
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.00461a99
add esp, 0x416c
ret