Function at 0x402d10
Capabilities:
Create directory
Delete directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x338
lea esi, [ebp - 0x11d]
mov dword [esp], esi
mov dword [esp + 8], 0x105
mov dword [esp + 4], 0
call fcn.0040b5d0
mov dword [esp + 4], esi
mov dword [esp], 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
sub esp, 8
mov dword [ebp - 0x330], 0x28a89061
lea edi, [ebp - 0x327]
lea ebx, [ebp - 0x222]
jmp 0x402d70
mov dword [ebp - 0x330], eax
nop
nop
nop
nop
mov eax, dword [ebp - 0x330]
cmp eax, 0x7cfc7b30
jg 0x402db0
cmp eax, 0x8cf8acaf
jg 0x402de0
cmp eax, 0x8519352b
jne 0x402d70
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
sub esp, 4
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x330], 0x4ced18e6
jmp 0x402d70
cmp eax, 0x7cfc7b31
jne 0x402d70
mov dword [esp + 4], 0
mov dword [esp], str.images
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 8
test eax, eax
mov eax, 0xaf8877d5
je 0x402d66
mov eax, 0x4209e687
jmp 0x402d66
cmp eax, 0x9e41615c
jg 0x402df3
cmp eax, 0x8cf8acb0
jne 0x402d70
jmp 0x40317a
cmp eax, 0x5e777bc5
jg 0x402e9d
cmp eax, 0xa4125f84
jg 0x402eb7
cmp eax, 0x9e41615d
jne 0x402d70
mov dword [esp], ebx
mov dword [esp + 8], 0x105
mov dword [esp + 4], 0
call fcn.0040b5d0
mov dword [esp], edi
mov dword [esp + 8], 0x105
mov dword [esp + 4], 0
call fcn.0040b5d0
mov dword [esp], ebx
mov dword [esp + 4], 0x105
call fcn.0040b95e
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp], edi
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x105
call fcn.0040b998
mov dword [esp], edi
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 8
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x330], 0xa4125f85
jmp 0x402d70
cmp eax, 0x5e777bc6
jne 0x402d70
mov dword [ebp - 0x330], 0x392d9829
jmp 0x402d70
cmp eax, 0xaf8877d4
jg 0x402ed8
cmp eax, 0xa4125f85
jne 0x402d70
mov dword [ebp - 0x330], 0x5e777bc6
jmp 0x402d70
cmp eax, 0xb96a0bc9
jg 0x402ef9
cmp eax, 0xaf8877d5
jne 0x402d70
mov dword [ebp - 0x330], 0xcb4258a3
jmp 0x402d70
cmp eax, 0xcb4258a2
jg 0x402f30
cmp eax, 0xb96a0bca
jne 0x402d70
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
sub esp, 4
test eax, eax
mov eax, 0x5831299f
je 0x402f25
mov eax, 0x7cfc7b31
mov dword [ebp - 0x330], eax
jmp 0x402d70
cmp eax, 0xd2e457b7
jg 0x402f51
cmp eax, 0xcb4258a3
jne 0x402d70
mov dword [ebp - 0x330], 0x4ced18e6
jmp 0x402d70
cmp eax, 0xe17f347c
jg 0x402f72
cmp eax, 0xd2e457b8
jne 0x402d70
mov dword [ebp - 0x330], 0x12f3b2b3
jmp 0x402d70
cmp eax, 0xdb467ff
jg 0x402f93
cmp eax, 0xe17f347d
jne 0x402d70
mov dword [ebp - 0x330], 0x392d9829
jmp 0x402d70
cmp eax, 0x5831299e
jg 0x402fbb
cmp eax, 0x12f3b2b2
jg 0x402fd5
cmp eax, 0xdb46800
jne 0x402d70
mov dword [ebp - 0x330], 0x4d643545
jmp 0x402d70
cmp eax, 0x5831299f
jne 0x402d70
mov dword [ebp - 0x330], 0xcb4258a3
jmp 0x402d70
cmp eax, 0x28a89060
jg 0x402ffc
cmp eax, 0x12f3b2b3
jne 0x402d70
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x330], 0x8cf8acb0
jmp 0x402d70
cmp eax, 0x392d9828
jg 0x40301d
cmp eax, 0x28a89061
jne 0x402d70
mov dword [ebp - 0x330], 0x9e41615d
jmp 0x402d70
cmp eax, 0x4209e686
jg 0x403049
cmp eax, 0x392d9829
jne 0x402d70
cmp dword [ebp - 0x32c], 0
sete byte [ebp - 0x11]
mov dword [ebp - 0x330], 0x4e486be6
jmp 0x402d70
cmp eax, 0x4ced18e5
jg 0x403071
cmp eax, 0x4209e687
jne 0x402d70
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x330], 0x4d643545
jmp 0x402d70
cmp eax, 0x52e7d9c4
jg 0x40309d
cmp eax, 0x4ced18e6
je 0x403131
cmp eax, 0x4d643545
jne 0x403153
mov dword [ebp - 0x330], 0x12f3b2b3
jmp 0x402d70
cmp eax, 0x52e7d9c5
jne 0x402d70
mov dword [esp], ebx
mov dword [esp + 8], 0x105
mov dword [esp + 4], 0
call fcn.0040b5d0
mov dword [esp], edi
mov dword [esp + 8], 0x105
mov dword [esp + 4], 0
call fcn.0040b5d0
mov dword [esp], ebx
mov dword [esp + 4], 0x105
call fcn.0040b95e
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp], edi
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x105
call fcn.0040b998
mov dword [esp], edi
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 8
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x330], 0x9e41615d
jmp 0x402d70
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
sub esp, 4
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x330], 0xdb46800
jmp 0x402d70
cmp eax, 0x4e486be6
jne 0x402d70
mov al, byte [ebp - 0x11]
test al, al
mov eax, 0x28a89061
jne 0x40316f
mov eax, 0xb96a0bca
mov dword [ebp - 0x330], eax
jmp 0x402d70
mov eax, dword [ebp - 0x10]
add esp, 0x338
pop esi
pop edi
pop ebx
pop ebp
ret