Function at 0x10030d70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x52c
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x528], eax
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp esi, ebp
je 0x10031269
push 0x206
lea eax, [esp + 0x22a]
push ebp
push eax
mov word [esp + 0x230], bp
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x2e]
push ebp
push ecx
mov word [esp + 0x34], bp
call sub.MSVCR80.dll_memset
add esp, 0x18
mov eax, 0x104
mov ecx, esi
lea edx, [esp + 0x224]
call fcn.100040d0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x10030de0
lea eax, [esp + 0x224]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030e00
sub eax, edx
sar eax, 1
cmp eax, 7
push ebx
mov ebx, 0x5c
jbe 0x10030f15
lea eax, [esp + 0x228]
lea edx, [eax + 2]
jmp 0x10030e30
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030e30
sub eax, edx
sar eax, 1
lea esi, [esp + eax*2 + 0x220]
mov ecx, str..adi
mov eax, esi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10030e76
cmp dx, bp
je 0x10030e72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10030e76
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x10030e50
xor eax, eax
jmp 0x10030e7b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x10030eb5
mov ecx, str..afi
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10030eac
cmp dx, bp
je 0x10030ea8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10030eac
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x10030e86
xor eax, eax
jmp 0x10030eb1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x10030f15
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030ec0
sub eax, edx
sar eax, 1
add eax, 0xffffffff
cmp eax, ebp
jl 0x10030eeb
movzx ecx, word [esp + eax*2 + 0x20]
cmp cx, bx
je 0x10030eeb
cmp cx, 0x2f
je 0x10030eeb
sub eax, 1
jns 0x10030ed6
mov word [esp + eax*2 + 0x22], bp
xor eax, eax
jmp 0x10030f00
movzx ecx, word [esp + eax + 0x20]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bp
jne 0x10030f00
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [esp + 0x24]
push edx
call edi
cmp eax, 0xffffffff
jne 0x10031267
cmp word [esp + 0x22c], bx
jne 0x10031129
cmp word [esp + 0x22e], bx
jne 0x10031129
lea eax, [esp + 0x22c]
mov ebx, 2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030f57
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [esp + 0x230]
push 0x5c
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.MSVCR80.dll_wcschr]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x10031076
lea esp, [esp]
mov ebx, esi
lea ecx, [esp + 0x22c]
sub ebx, ecx
sar ebx, 1
add ebx, 1
cmp ebx, edi
jg 0x10031076
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x10]
push edx
mov eax, ecx
push eax
mov word [esi], bp
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10031054
push 0x103
push eax
lea ecx, [esp + 0x43d]
push ecx
mov byte [esp + 0x440], al
call sub.MSVCR80.dll_memset
push 0x104
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x448]
push eax
call dword [sym.imp.MSVCR80.dll_wcstombs]
add esp, 0x18
call sub.Comn.dll_GetObjectLog
lea ecx, [esp + 0x434]
mov ebp, eax
mov eax, dword [ebp]
push ecx
push 0x100
mov edi, str..UiRecord.cpp
mov dword [esp + 0x24], eax
call fcn.1002f930
add esp, 4
push eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0xc]
push 0x10155cf8
push ebp
call edx
mov edi, dword [esp + 0x30]
add esp, 0x10
xor ebp, ebp
lea eax, [esp + ebx*2 + 0x22c]
push 0x5c
push eax
mov word [esi], 0x5c
call dword [sym.imp.MSVCR80.dll_wcschr]
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x10030f90
add ebx, 1
cmp ebx, edi
jge 0x10031267
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x230]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10031267
push 0x103
mov byte [esp + 0x438], al
lea eax, [esp + 0x439]
push ebp
push eax
call sub.MSVCR80.dll_memset
push 0x104
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x448]
push edx
call dword [sym.imp.MSVCR80.dll_wcstombs]
add esp, 0x18
call sub.Comn.dll_GetObjectLog
mov esi, eax
mov ebx, dword [esi]
lea eax, [esp + 0x434]
push eax
push 0x112
mov edi, str..UiRecord.cpp
call fcn.1002f930
mov ecx, dword [ebx + 0xc]
add esp, 4
push eax
push 0x10155cf8
push esi
call ecx
add esp, 0x10
jmp 0x10031267
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10031130
sub eax, edx
sar eax, 1
mov esi, eax
sub esi, 1
js 0x1003116f
lea edx, [esp + 0x24]
push edx
call edi
cmp eax, 0xffffffff
jne 0x1003116f
movzx eax, word [esp + esi*2 + 0x24]
cmp ax, bx
je 0x10031280
cmp ax, 0x2f
je 0x10031280
sub esi, 1
jns 0x10031152
lea eax, [esp + 0x24]
push eax
call edi
cmp eax, 0xffffffff
je 0x10031267
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, 0xc
lea ebx, [ebx]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100311a2
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x22c]
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100311c0
sub eax, edi
sar eax, 1
cmp edx, eax
jae 0x10031267
xor eax, eax
xor edx, edx
jmp 0x100311e0
movzx ecx, word [esp + eax + 0x22c]
mov word [esp + eax + 0x24], cx
add eax, 2
cmp cx, dx
jne 0x100311e0
add esi, 1
cmp esi, 0x104
jge 0x10031221
movzx eax, word [esp + esi*2 + 0x24]
cmp ax, 0x5c
je 0x10031221
cmp ax, 0x2f
je 0x10031221
cmp ax, dx
je 0x10031221
add esi, 1
cmp esi, 0x104
jl 0x10031200
cmp word [esp + esi*2 + 0x24], dx
je 0x10031267
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + esi*2 + 0x24], dx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x18], ebp
call ebx
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10031190
pop edi
pop ebx
mov ecx, dword [esp + 0x530]
pop esi
pop ebp
xor ecx, esp
call fcn.10130e50
add esp, 0x52c
ret
cmp esi, ebp
jl 0x1003116f
mov word [esp + esi*2 + 0x24], bp
jmp 0x10031146