Function at 0x437670
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee5b1
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x560094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xdc], edi
xor ecx, ecx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], cx
mov eax, dword [eax]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xc0], ecx
jb 0x4376f8
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
cmp ecx, 8
jae 0x437712
movups xmm0, xmmword [eax]
mov dword [ebp - 0x40], 7
mov esi, 7
movups xmmword [ebp - 0x54], xmm0
jmp 0x437758
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x54]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.0042af30
mov ecx, eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x54], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0xa0]
push ecx
call fcn.004c0d60
mov ecx, dword [ebp - 0xc0]
add esp, 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 1
test ecx, ecx
jne 0x43779d
mov byte [ebp - 4], cl
cmp esi, 8
jb 0x437db5
mov ecx, dword [ebp - 0x54]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x437797
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381f5
push esi
jmp 0x437dac
cmp esi, 8
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x54]
je 0x437d42
cmp dword [ebp - 0x40], 8
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x437801
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
push dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x84]
push eax
call fcn.0042b3e0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xbc], 1
mov byte [ebp - 4], 0
call fcn.004292e0
jmp 0x437db5
mov eax, 1
mov dword [ebp - 0xf8], eax
nop dword [eax]
lea esi, [ebp - 0x12]
mov ecx, eax
test eax, eax
jns 0x437850
neg ecx
nop dword [eax + eax]
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x437820
add esi, 0xfffffffe
mov eax, 0x2d
mov word [esi], ax
jmp 0x437870
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x437850
xor eax, eax
mov dword [ebp - 0xe4], 0
mov word [ebp - 0xf4], ax
lea eax, [ebp - 0x12]
mov dword [ebp - 0xe0], 7
cmp esi, eax
je 0x4378a5
sub eax, esi
lea ecx, [ebp - 0xf4]
sar eax, 1
push eax
push esi
call fcn.0042b3e0
or edi, 6
mov dword [ebp - 0xfc], edi
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0xd8], ax
lea ecx, [ebp - 0xd8]
mov eax, dword [ebp - 0x44]
or edi, 8
add eax, 6
mov dword [ebp - 0xc8], 0
push eax
mov dword [ebp - 0xc4], 7
mov dword [ebp - 0x108], edi
mov dword [ebp - 0xdc], edi
call fcn.0043ccd0
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
push dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x54]
lea ecx, [ebp - 0xd8]
push eax
call fcn.0043ca90
push 6
push 0x4fd448
lea ecx, [ebp - 0xd8]
call fcn.0043ca90
mov eax, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xc8]
sub eax, esi
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x104], esi
cmp ecx, eax
jbe 0x437a41
mov eax, edx
sub eax, ecx
cmp eax, esi
jb 0x437a41
cmp dword [ebp - 0xc4], 8
lea edx, [ebp - 0xd8]
cmovae edx, dword [ebp - 0xd8]
mov dword [ebp - 0xc0], edx
cmp esi, eax
ja 0x437a22
cmp dword [ebp - 0xe0], 8
lea eax, [ecx + esi]
mov dword [ebp - 0xe4], eax
lea edi, [ebp - 0xf4]
cmovae edi, dword [ebp - 0xf4]
lea eax, [esi + esi]
mov dword [ebp - 0x100], eax
add ecx, ecx
add eax, edx
mov dword [ebp - 0xa0], edi
cmp eax, edi
jbe 0x4379bb
lea eax, [edi + ecx]
cmp edx, eax
ja 0x4379bb
cmp edi, edx
ja 0x4379b5
xor edi, edi
jmp 0x4379bd
sub edi, edx
sar edi, 1
jmp 0x4379bd
mov edi, esi
lea eax, [ecx + 2]
push eax
mov eax, dword [ebp - 0xa0]
push eax
add eax, dword [ebp - 0x100]
push eax
call fcn.004c12e0
lea esi, [edi + edi]
push esi
push dword [ebp - 0xc0]
push dword [ebp - 0xa0]
call fcn.004c0d60
mov ecx, dword [ebp - 0x104]
mov eax, ecx
sub eax, edi
add eax, eax
push eax
lea eax, [ecx + edi]
mov ecx, dword [ebp - 0xc0]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp - 0xa0]
add eax, esi
push eax
call fcn.004c0d60
mov edi, dword [ebp - 0x108]
lea eax, [ebp - 0xf4]
add esp, 0x24
jmp 0x437a5e
push esi
push edx
push 0
mov byte [ebp - 0x10c], 0
lea ecx, [ebp - 0xf4]
push dword [ebp - 0x10c]
push esi
call fcn.00436320
jmp 0x437a5e
cmp edx, 8
lea eax, [ebp - 0xf4]
push ecx
cmovae eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0xd8]
push eax
call fcn.0043ca90
mov dword [ebp - 0xa8], 0
xor ecx, ecx
mov dword [ebp - 0xa4], 0
or edi, 0x10
movups xmm0, xmmword [eax]
mov dword [ebp - 0xdc], edi
movups xmmword [ebp - 0xb8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa8], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x4fd444
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.0043ca90
mov edi, dword [ebp - 0xfc]
xor ecx, ecx
mov dword [ebp - 0x5c], 0
or edi, 0x38
mov dword [ebp - 0x58], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0xa4]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x437b36
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437b2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381f5
push edx
push ecx
call fcn.0049fef8
add esp, 8
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
and edi, 0xfffffff7
mov word [ebp - 0xb8], ax
mov edx, dword [ebp - 0xc4]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x437b9a
mov ecx, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437b90
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381f5
push edx
push ecx
call fcn.0049fef8
add esp, 8
xor eax, eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
mov edx, dword [ebp - 0xe0]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x437bfb
mov ecx, dword [ebp - 0xf4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437bf1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381f5
push edx
push ecx
call fcn.0049fef8
add esp, 8
xor eax, eax
mov dword [ebp - 0xe4], 0
cmp dword [ebp - 0x58], 8
mov word [ebp - 0xf4], ax
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push eax
mov dword [ebp - 0xe0], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x6c]
je 0x437ca6
cmp dword [ebp - 0x58], 8
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x437cc1
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
push dword [ebp - 0x5c]
cmovae eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x84]
push eax
call fcn.0042b3e0
mov dword [ebp - 0xbc], 1
mov edx, dword [ebp - 0x58]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x437d77
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437d17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381fa
jmp 0x437d17
cmp dword [ebp - 0x58], 8
push 0
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0xbc], eax
test eax, eax
jne 0x437d23
mov edx, dword [ebp - 0x58]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x437cff
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437cf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381f5
push edx
push ecx
call fcn.0049fef8
add esp, 8
mov eax, dword [ebp - 0xf8]
inc eax
mov dword [ebp - 0xf8], eax
cmp eax, 0xb
jl 0x437810
jmp 0x437d77
push edx
push ecx
call fcn.0049fef8
add esp, 8
jmp 0x437d77
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
push dword [ebp - 0x5c]
cmovae eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x84]
push eax
call fcn.0042b3e0
jmp 0x437c68
cmp dword [ebp - 0x40], 8
push 0
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x437d77
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
push dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x84]
push eax
call fcn.0042b3e0
mov edx, dword [ebp - 0x40]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x437db5
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437dab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381fa
push edx
push ecx
call fcn.0049fef8
add esp, 8
xorps xmm0, xmm0
lea ecx, [ebp - 0x9c]
movups xmmword [ebp - 0x9c], xmm0
movq qword [ebp - 0x8c], xmm0
call fcn.0048c590
push dword [ebp - 0xbc]
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 9
call fcn.00489890
push 7
push str.success
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
call fcn.0042b2e0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0048c6c0
mov ecx, eax
call fcn.00489e10
mov edx, dword [ebp - 0xa4]
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x437e7a
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x437e70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381fa
push edx
push ecx
call fcn.0049fef8
add esp, 8
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
mov byte [ebp - 4], 9
call fcn.00489da0
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
push 0xfde9
cmovae eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x194]
push eax
call fcn.00436660
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0xc
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437ef0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xd8]
call fcn.0042b2e0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0xf4]
call fcn.00489820
push 4
push 0x4fd460
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
call fcn.0042b2e0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0048c6c0
mov ecx, eax
call fcn.00489e10
mov edx, dword [ebp - 0xa4]
mov byte [ebp - 4], 0xe
cmp edx, 0x10
jb 0x437faf
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x437fa5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381fa
push edx
push ecx
call fcn.0049fef8
add esp, 8
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
call fcn.00489da0
mov edx, dword [ebp - 0xc4]
mov byte [ebp - 4], 0xc
cmp edx, 0x10
jb 0x438013
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438009
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381fa
push edx
push ecx
call fcn.0049fef8
add esp, 8
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x190]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
mov byte [ebp - 4], 9
cmp eax, ecx
je 0x43804b
push eax
call fcn.004c4deb
add esp, 4
push 0
push 0x4fd177
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
call fcn.0042b2e0
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0048d320
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x4380a1
mov eax, dword [eax]
push 0xfde9
push eax
lea ecx, [ebp - 0x214]
call fcn.00436530
mov edx, dword [eax]
xor eax, eax
mov edi, dword [ebp - 0x110]
mov ecx, edx
mov byte [ebp - 4], 0x12
mov dword [edi + 0x10], 0
lea esi, [ecx + 2]
mov dword [edi + 0x14], 7
mov word [edi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4380d6
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0042b3e0
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x438107
push eax
call fcn.004c4deb
add esp, 4
mov edx, dword [ebp - 0xc4]
cmp edx, 0x10
jb 0x438141
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438137
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381fa
push edx
push ecx
call fcn.0049fef8
add esp, 8
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
cmp edx, 0x10
jb 0x438192
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438188
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381fa
push edx
push ecx
call fcn.0049fef8
add esp, 8
lea ecx, [ebp - 0x9c]
call fcn.00489da0
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x4381d6
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4381cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4381fa
push edx
push ecx
call fcn.0049fef8
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a01a0
mov esp, ebp
pop ebp
ret 8
call fcn.004c4d9a
call fcn.004c4d9a
int3