Function at 0x402900
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413af0
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x190], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x98]
cmp eax, ebx
je 0x40295e
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0x52c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 8], ebx
jle 0x402ae8
jmp 0x402976
mov esi, dword [ebp - 0x190]
push 0x12c
lea edx, [ebp - 0x188]
push 0
push edx
call fcn.0040bf50
add esp, 0xc
test esi, esi
jne 0x40299c
mov dword [0x41e210], 0x10000
jmp 0x4029c2
cmp dword [esi], 1
je 0x4029ad
mov dword [0x41e210], 0x80000
jmp 0x4029c2
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x188]
push eax
push ebx
call fcn.004077f0
mov dword [0x41e210], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
test edi, edi
jne 0x4029d8
mov edi, 0x417c2e
mov ecx, edi
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4029e0
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x402a08
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0x58], 0
call fcn.00409221
add esp, 8
mov dword [ebp - 0x58], eax
push esi
push edi
push eax
call fcn.00409005
mov edx, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + edx], 0
push 0x417bfc
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00401b50
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x58]
call fcn.00401b50
test byte [ebp - 0x80], 0x10
je 0x402a4c
mov ecx, dword [ebp - 0x58]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x190]
test eax, eax
jne 0x402a62
mov dword [0x41e210], 0x10000
jmp 0x402a86
cmp dword [eax], 1
je 0x402a73
mov dword [0x41e210], 0x80000
jmp 0x402a86
mov edx, dword [ebp - 0x58]
mov eax, dword [eax + 4]
push edx
push ebx
push eax
call fcn.00407ed0
mov dword [0x41e210], eax
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x402aa2
mov ecx, dword [ebp - 0x58]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x98]
test eax, eax
je 0x402ac1
push 0
push ebx
push 0x52d
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x402ad8
push eax
call fcn.00408302
add esp, 4
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x402970
mov edi, dword [ebp - 0x18c]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x402b02
push 0
push 0
push 0x52e
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x402b1c
push eax
call fcn.00408302
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082f3
mov esp, ebp
pop ebp
ret 0x48