Function at 0x4ca1c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b173
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.00417c60
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4ca213
mov eax, dword [ebp - 0x34]
cmp byte [eax + ecx - 1], 0x5c
je 0x4ca227
push 0
push 1
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp + 0xc], 0x5c
call fcn.00418a80
cmp byte [edi], 0
mov esi, dword [ebp + 8]
jne 0x4ca299
lea ebx, [esi + 0x30]
lea eax, [edi + 0x3c]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.00417fa0
add esp, 8
lea eax, [ebp - 0x38]
push ebx
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 0
call fcn.004147b0
add esp, 0xc
push eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 3
call fcn.00417e10
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.00417dd0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4ca285
mov eax, dword [esi + 0x10]
cmp byte [eax + ecx - 1], 0x5c
je 0x4ca299
push 0
push 1
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0xc]
mov byte [ebp + 0xc], 0x5c
call fcn.00418a80
cmp dword [esi + 0x3c], 0
je 0x4ca2bf
push 0xffffffffffffffff
push dword [esi + 0x38]
lea ecx, [ebp - 0x38]
mov byte [ebp + 0xc], 0x5c
call fcn.00418b20
push 0
push 1
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00418a80
push 0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4ca3b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
je 0x4ca3b5
test ebx, ebx
je 0x4ca3b5
cmp dword [0x57604c], str.The_directory__
lea ecx, [edi + 0x78]
jne 0x4ca346
call fcn.00419670
jmp 0x4ca354
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0xffffffffffffffff
push str.The_directory__
call fcn.00418a80
push 0xffffffffffffffff
push dword [ebp - 0x30]
mov ecx, eax
call fcn.00418b20
cmp dword [0x57604c], 0x546bec
mov ecx, eax
jne 0x4ca375
call fcn.00419670
jmp 0x4ca383
push 0
push 0xffffffffffffffff
push str.__cannot_be_created._nReceived_error_was
call fcn.00418a80
push ebx
push eax
call fcn.00418470
add esp, 8
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
mov eax, 0x10b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ca3cd
mov eax, dword [ecx]
push dword [ebp - 0x34]
mov eax, dword [eax]
call eax
test al, al
jne 0x4ca3cd
mov byte [edi + 0x68], 1
cmp byte [edi], 0
mov byte [ebp - 4], 4
je 0x4ca3e1
mov eax, dword [esi + 0x6c]
lea ecx, [esi + 0x6c]
call dword [eax + 4]
jmp 0x4ca3e9
lea ecx, [edi + 0x3c]
call fcn.00417650
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [ebp + 0xc], ecx
cmp ecx, eax
jge 0x4ca4f7
cmp byte [edi], 0
je 0x4ca406
mov eax, dword [esi + 0x70]
mov ebx, dword [eax + ecx*4]
jmp 0x4ca47b
lea eax, [edi + 0x3c]
push eax
call fcn.00416410
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4ca444
cmp dword [0x57604c], str.A_file_record_in_data.sah_is_invalid.
lea ecx, [edi + 0x78]
jne 0x4ca431
call fcn.00419670
jmp 0x4ca31e
push 0
push 0xffffffffffffffff
push str.A_file_record_in_data.sah_is_invalid.
call fcn.00418a80
jmp 0x4ca31e
lea eax, [ebx + 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004147b0
add esp, 0xc
push eax
lea ecx, [ebx + 0x10]
mov byte [ebp - 4], 5
call fcn.00417e10
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00417dd0
mov eax, dword [esi + 0x6c]
lea ecx, [esi + 0x6c]
push ebx
call dword [eax + 0x20]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ca4aa
mov esi, dword [eax]
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x6c]
shrd eax, ecx, 0x10
cdq
push edx
push eax
push dword [ebx + 0x38]
mov eax, dword [esi + 4]
sar ecx, 0x10
mov ecx, dword [ebp + 0x10]
call eax
mov esi, dword [ebp + 8]
test al, al
jne 0x4ca4aa
mov byte [edi + 0x68], 1
cmp byte [edi + 0x68], 0
je 0x4ca4d8
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
mov eax, 0x4c7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x38]
push eax
push ebx
mov ecx, edi
call fcn.004c9d40
test eax, eax
jne 0x4ca4eb
inc dword [edi + 0x70]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
inc ecx
jmp 0x4ca3ee
cmp byte [edi], 0
je 0x4ca507
mov eax, dword [esi + 0x54]
lea ecx, [esi + 0x54]
call dword [eax + 4]
jmp 0x4ca50f
lea ecx, [edi + 0x3c]
call fcn.00417650
mov dword [ebp + 0xc], eax
xor ebx, ebx
cmp ebx, eax
jge 0x4ca5aa
cmp byte [edi], 0
je 0x4ca529
mov eax, dword [esi + 0x58]
mov esi, dword [eax + ebx*4]
jmp 0x4ca564
push 0x98
call fcn.004efd54
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x4ca552
push 1
push 0
push 0
mov ecx, eax
call fcn.0045ed90
mov esi, eax
jmp 0x4ca554
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0x54
push esi
mov eax, dword [ecx]
mov byte [ebp - 4], 4
call dword [eax + 0x20]
push dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push eax
push esi
mov ecx, edi
call fcn.004ca1c0
mov esi, eax
test esi, esi
je 0x4ca59e
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
inc ebx
jmp 0x4ca514
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc