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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464ef9
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x479008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x47b1a1], 0
jne 0x438014
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00433e70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0x2c]
mov ebx, eax
call fcn.0041bebc
add esp, 4
jmp 0x438022
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x438040
cmp ebx, 0xffffffff
je 0x438040
test bl, 0x10
je 0x438040
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0043ab50
test al, al
je 0x43805f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043abc0
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], eax
call fcn.00435960
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
lea ecx, [ebx + edi*2]
cmp ecx, ebx
je 0x4380c1
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, 0x5c
je 0x43809b
cmp eax, 0x2f
je 0x43809b
cmp ecx, ebx
jne 0x438084
jmp 0x4380c1
sub ecx, ebx
sar ecx, 1
js 0x4380c1
lea eax, [edi - 1]
cmp ecx, eax
jne 0x4380c1
cmp edi, 1
jne 0x4380b6
mov byte [ebp - 0xd], 1
jmp 0x43831a
mov edi, eax
xor ecx, ecx
mov dword [ebp - 0x1c], edi
mov word [ebx + eax*2], cx
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041bfdb
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
push ecx
push ebx
push eax
call fcn.0041f8c0
add esp, 0xc
mov byte [ebp - 4], 1
mov esi, edi
nop
cmp byte [0x47b1a1], 0
jne 0x438137
mov edx, ebx
lea ecx, [ebp - 0x38]
call fcn.00433e70
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x38]
mov edi, eax
call fcn.0041bebc
add esp, 4
test edi, edi
jne 0x43820c
mov edi, dword [ebp - 0x1c]
jmp 0x438148
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43820c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43819e
lea ecx, [ebp - 0x70]
call fcn.00402130
push 0
push ebx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00439160
test al, al
jne 0x438181
mov byte [ebp - 4], 1
push dword [ebp - 0x48]
call fcn.0041bebc
add esp, 4
jmp 0x43819e
mov ebx, dword [ebp - 0x50]
mov byte [ebp - 4], 1
push dword [ebp - 0x48]
shr ebx, 4
call fcn.0041bebc
add esp, 4
and bl, 1
mov ebx, dword [ebp - 0x20]
jne 0x43820c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4381c7
lea esi, [ebx + edi*2]
cmp esi, ebx
je 0x4381c7
movzx eax, word [esi - 2]
sub esi, 2
cmp eax, 0x5c
je 0x4381d0
cmp eax, 0x2f
je 0x4381d0
cmp esi, ebx
jne 0x4381b2
mov byte [ebp - 0xd], 0
jmp 0x43830f
sub esi, ebx
sar esi, 1
js 0x4381c7
test esi, esi
je 0x4381c7
cmp esi, 1
jne 0x4381ec
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x4381c7
cmp eax, 0x2f
je 0x4381c7
lea eax, [esi + 1]
cmp dword [ebp - 0x14], eax
jae 0x4381c7
cmp esi, edi
jae 0x438100
mov edi, esi
xor eax, eax
mov dword [ebp - 0x1c], edi
mov word [ebx + esi*2], ax
jmp 0x438100
mov edi, dword [ebp - 0x28]
cmp esi, edi
jge 0x43830b
nop word [eax + eax]
mov edx, dword [ebp - 0x2c]
add edx, 2
movzx eax, word [edx + esi*2]
lea edx, [edx + esi*2]
mov ecx, edx
test ax, ax
je 0x438254
cmp ax, 0x5c
je 0x4382e0
cmp ax, 0x2f
je 0x4382e0
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x438234
mov esi, edi
cmp esi, dword [ebp - 0x18]
jbe 0x43828d
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041bfdb
add esp, 4
mov edi, eax
push ebx
call fcn.0041bebc
mov ebx, edi
mov dword [ebp - 0x18], esi
mov edi, dword [ebp - 0x28]
add esp, 4
mov dword [ebp - 0x20], ebx
test esi, esi
je 0x4382a1
lea eax, [esi + esi]
push eax
push dword [ebp - 0x2c]
push ebx
call fcn.0041f8c0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1c], esi
mov word [ebx + esi*2], ax
cmp byte [0x47b1a1], al
jne 0x4382f2
mov edx, ebx
lea ecx, [ebp - 0x38]
call fcn.00433e70
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x38]
mov edi, eax
call fcn.0041bebc
add esp, 4
test edi, edi
je 0x4381c7
mov edi, dword [ebp - 0x28]
jmp 0x438303
sub ecx, edx
sar ecx, 1
js 0x438254
inc esi
add esi, ecx
jmp 0x438256
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4381c7
cmp esi, edi
jl 0x438220
mov byte [ebp - 0xd], 1
push dword [ebp - 0x2c]
call fcn.0041bebc
add esp, 4
push ebx
call fcn.0041bebc
mov al, byte [ebp - 0xd]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret