Function at 0x461bf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c203
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x4a7008]
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
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push 0
xor bl, bl
mov dword [ebp - 0x2c], 0xf
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], bl
call fcn.004034d0
mov byte [ebp - 4], 1
lea esp, [esp]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x1e0]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x461d38
push 2
push ecx
push 0x497640
lea ecx, [ebp - 0x40]
call fcn.00417fb0
push eax
mov dword [ebp - 0x324], eax
lea ecx, [ebp - 0x40]
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.004151e0
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x461d0c
cmp dword [ebp - 0x2c], 0x10
jb 0x461cb6
push dword [ebp - 0x40]
call fcn.0046fdb4
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp dword [esi + 0x14], 0x10
jae 0x461ce4
mov eax, dword [esi + 0x10]
inc eax
je 0x461cef
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0046f330
add esp, 0xc
jmp 0x461cef
mov eax, dword [esi]
mov dword [ebp - 0x40], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x2c], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x74], 0x10
jb 0x461d20
push dword [ebp - 0x88]
call fcn.0046fdb4
add esp, 4
cmp dword [ebp - 0x324], 0xffffffff
jne 0x461d3a
push 0
push 0x4935ff
lea ecx, [ebp - 0x40]
call fcn.00403610
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x461c50
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov dword [ebp - 0x44], 0xf
xor bl, bl
mov dword [ebp - 0x48], 0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x58], bl
call fcn.004034d0
push 0xffffffffffffffff
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x58]
push eax
call fcn.004151e0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x461dc8
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
add edi, esi
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
cmp esi, edi
jae 0x461dc8
movsx eax, byte [esi]
push 2
push eax
push 0x497640
call fcn.0046fe60
add esp, 0xc
test eax, eax
jne 0x461e9e
inc esi
cmp esi, edi
jb 0x461da8
or esi, 0xffffffff
mov bl, 1
push esi
push 0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x28]
call fcn.004151e0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.00462740
add esp, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmovae eax, dword [ebp - 0x70]
push 0
push eax
call edi
test eax, eax
je 0x462002
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403320
test esi, esi
jle 0x462002
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x28]
call fcn.004151e0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x461feb
cmp dword [ebp - 0x14], 0x10
jb 0x461e65
push dword [ebp - 0x28]
call fcn.0046fdb4
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [esi + 0x14], 0x10
jae 0x461fc3
mov eax, dword [esi + 0x10]
inc eax
je 0x461fce
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0046f330
add esp, 0xc
jmp 0x461fce
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esi, eax
cmp esi, 0xffffffff
je 0x461dcb
test esi, esi
jne 0x461dcd
push 1
push 0x497624
lea ecx, [ebp - 0x40]
call fcn.004033e0
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x28]
call fcn.004151e0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x461f4e
cmp dword [ebp - 0x14], 0x10
jb 0x461ef8
push dword [ebp - 0x28]
call fcn.0046fdb4
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [esi + 0x14], 0x10
jae 0x461f26
mov eax, dword [esi + 0x10]
inc eax
je 0x461f31
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0046f330
add esp, 0xc
jmp 0x461f31
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x8c], 0x10
jb 0x461f65
push dword [ebp - 0xa0]
call fcn.0046fdb4
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test bl, bl
je 0x461d85
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x320]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x462046
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 8]
push ecx
call edi
test eax, eax
jne 0x462046
sub esp, 0x18
mov ecx, esp
push str.EnsureDirectoryExists
call fcn.00403250
call fcn.004620f0
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x8c], 0x10
jb 0x462002
push dword [ebp - 0xa0]
call fcn.0046fdb4
add esp, 4
cmp dword [ebp - 0x5c], 0x10
jb 0x462013
push dword [ebp - 0x70]
call fcn.0046fdb4
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x74], 0x10
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jb 0x461f6b
push dword [ebp - 0x88]
call fcn.0046fdb4
add esp, 4
jmp 0x461f6b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 0x10
jb 0x46205e
push dword [ebp - 0x28]
call fcn.0046fdb4
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x462081
push dword [ebp - 0x58]
call fcn.0046fdb4
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x4620a4
push dword [ebp - 0x40]
call fcn.0046fdb4
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x4620c7
push dword [ebp + 8]
call fcn.0046fdb4
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.0046f27e
mov esp, ebp
pop ebp
ret