Function at 0x403090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5068d7
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x52f8b0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x52f8b0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0
call fcn.00440910
mov dword [esp + 0x244], 0
call fcn.00442250
push edx
push eax
lea eax, [esp + 0x2c]
push 0x526a50
push eax
call fcn.00404830
add esp, 0x14
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x104
push dword [esp + 0x24]
push 0x5348f0
call fcn.0041b973
add esp, 0xc
lea ecx, [esp + 0x20]
push 1
push 0x5269b0
call fcn.00401730
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.0041f040
add esp, 0xc
lea eax, [esp + 0x24]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.004023b0
mov byte [esp + 0x240], 1
push 0x5c
push dword [esp + 0x14]
call fcn.0041b9bd
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x4031e6
sub eax, dword [esp + 0x10]
sar eax, 1
js 0x4031e6
inc eax
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00404660
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 2
call fcn.00404740
mov byte [esp + 0x240], 1
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4031e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x240], 3
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push dword [esp + 0x24]
push str._s_s.rpt
push eax
call fcn.00401d50
mov edi, dword [esp + 0x24]
add esp, 0x10
cmp dword [edi - 0xc], 0
je 0x403257
push 0
push bind
push 4
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x534d00], eax
test eax, eax
je 0x403261
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403261
mov dword [0x534d00], 0
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x240], 4
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push dword [esp + 0x24]
push str._s_s.dmp
push eax
call fcn.00401d50
mov esi, dword [esp + 0x28]
add esp, 0x10
cmp dword [esi - 0xc], 0
je 0x4032c4
push 0
push bind
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x534d04], eax
cmp eax, 0xffffffff
jne 0x4032ce
mov dword [0x534d04], 0
add esi, 0xfffffff0
mov byte [esp + 0x240], 3
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4032ef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [esp + 0x240], 1
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403310
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x240], 0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403335
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x240], 0xffffffff
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40335b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret