Function at 0x40f2f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4653f5
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x198]
xor ebp, ebp
mov ecx, ebx
cmp ebx, ebp
jne 0x40f33f
mov ecx, 0x4772d0
mov edi, 0xf
mov eax, ecx
mov dword [esp + 0x180], edi
mov dword [esp + 0x17c], ebp
mov byte [esp + 0x16c], 0
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40f360
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x170]
call fcn.00408130
push 1
push 0x46a9ec
lea ecx, [esp + 0x38]
mov dword [esp + 0x198], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x3c], 0
call fcn.00408130
push 1
push 0x46a9e8
lea ecx, [esp + 0x54]
mov byte [esp + 0x198], 1
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov byte [esp + 0x58], 0
call fcn.00408130
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x170]
push edx
mov byte [esp + 0x19c], 2
call fcn.0041bcd0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x64], esi
jb 0x40f3fa
mov eax, dword [esp + 0x50]
push eax
call fcn.0041f6a2
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
mov byte [esp + 0x50], 0
mov byte [esp + 0x190], 0
cmp dword [esp + 0x48], esi
jb 0x40f422
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041f6a2
add esp, 4
push 0x46a9ec
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0041cca0
add esp, 0xc
push 1
push 2
lea ecx, [esp + 0x70]
mov byte [esp + 0x198], 3
call fcn.00407d10
cmp byte [ebx], 0x5c
mov byte [esp + 0x190], 4
jne 0x40f470
lea ecx, [esp + 0x68]
push 0x46a9ec
push ecx
call fcn.004052a0
add esp, 8
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f5b1
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp ebp, eax
jb 0x40f4ac
call fcn.0043c958
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp dword [esi + ebx + 0x14], 0
je 0x40f588
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x40f4d9
call fcn.0043c958
mov esi, dword [esp + 0x24]
lea eax, [esi + ebx]
push 0x46a9ec
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
add esp, 8
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x6c]
call fcn.004048a0
cmp dword [eax + 0x14], 3
mov edi, 0x10
setbe bl
cmp dword [esp + 0x48], edi
jb 0x40f525
mov eax, dword [esp + 0x34]
push eax
call fcn.0041f6a2
add esp, 4
test bl, bl
jne 0x40f57c
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x6c]
call fcn.004048a0
cmp dword [eax + 0x18], edi
jb 0x40f541
mov eax, dword [eax + 4]
jmp 0x40f544
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
sete bl
cmp dword [esp + 0x48], edi
jb 0x40f565
mov edx, dword [esp + 0x34]
push edx
call fcn.0041f6a2
add esp, 4
test bl, bl
je 0x40f57c
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0xb7
jne 0x40f66a
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebp
add ebx, 0x1c
add eax, edx
mov dword [esp + 0x14], ebx
cmp ebp, eax
jb 0x40f4ac
xor ebp, ebp
lea ecx, [esp + 0xb4]
mov byte [esp + 0x190], 3
call fcn.00405530
lea edx, [esp + 0xb4]
push edx
mov dword [esp + 0xb8], vtable.std::ios_base.0
call fcn.004563aa
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, ebp
je 0x40f60a
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
call fcn.0040c970
mov edx, dword [esp + 0x34]
push edx
call fcn.0041f6a2
add esp, 0x14
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.0041f6a2
add esp, 4
cmp dword [esp + 0x180], 0x10
jb 0x40f63d
mov ecx, dword [esp + 0x16c]
push ecx
call fcn.0041f6a2
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x180
ret
push 1
push 2
lea ecx, [esp + 0xf0]
call fcn.00407d10
lea eax, [esp + 0x30]
mov bl, 5
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x194], bl
call fcn.004048a0
push esi
push 0x46ac1c
push eax
lea ecx, [esp + 0xf4]
push str.CreateDirectory:
push ecx
mov byte [esp + 0x1a4], 6
call fcn.004052a0
add esp, 8
push eax
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
add esp, 8
mov ecx, eax
call fcn.004011c0
mov byte [esp + 0x190], bl
cmp dword [esp + 0x48], edi
jb 0x40f6e8
mov edx, dword [esp + 0x34]
push edx
call fcn.0041f6a2
add esp, 4
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xec]
call fcn.004048a0
mov byte [esp + 0x190], 7
cmp dword [eax + 0x18], edi
jb 0x40f70b
mov eax, dword [eax + 4]
jmp 0x40f70e
add eax, 4
push eax
push str.BaseLib::CxxCreateDirectory
push 0x36e
push str..common_function.cpp
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
cmp dword [esp + 0x48], edi
jb 0x40f742
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041f6a2
add esp, 4
lea ecx, [esp + 0x134]
mov byte [esp + 0x190], 4
call fcn.00405530
lea edx, [esp + 0x134]
mov esi, vtable.std::ios_base.0
push edx
mov dword [esp + 0x138], esi
call fcn.004563aa
add esp, 4
lea ecx, [esp + 0xb4]
mov byte [esp + 0x190], 3
call fcn.00405530
lea eax, [esp + 0xb4]
push eax
mov dword [esp + 0xb8], esi
call fcn.004563aa
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0040d7b0
cmp dword [esp + 0x180], edi
jb 0x40f7bf
mov ecx, dword [esp + 0x16c]
push ecx
call fcn.0041f6a2
add esp, 4
xor eax, eax
jmp 0x40f642