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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x591bab
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5cca0c]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
xor ebx, ebx
push 1
mov edi, 0xf
push 0x597ac0
lea ecx, [ebp + 0x54]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x58], bl
call fcn.0040c1c0
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x4c], ebx
mov byte [ebp + 0x3c], bl
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edi, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
cmp edi, ebx
mov eax, dword [esi + 4]
mov dword [ebp - 0x6c], eax
je 0x54d152
cmp edi, esi
je 0x54d157
call fcn.005532de
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x6c]
je 0x54d8f2
cmp edi, ebx
jne 0x54d16c
call fcn.005532de
mov edx, dword [ebp - 0x1c]
cmp edx, dword [edi + 4]
jne 0x54d179
call fcn.005532de
mov edi, dword [ebp - 0x1c]
add edi, 0x10
mov ecx, edi
mov dword [ebp - 0x10], ebx
call fcn.0050cfd0
test eax, eax
jbe 0x54d8db
mov esi, dword [edi + 4]
test esi, esi
je 0x54d8ed
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, esi
sar eax, 7
cmp eax, dword [ebp - 0x10]
jbe 0x54d8ed
cmp esi, ecx
jbe 0x54d1b8
call fcn.005532de
mov ebx, dword [ebp - 0x10]
shl ebx, 7
mov dword [ebp - 0x64], esi
add esi, ebx
cmp esi, dword [edi + 8]
mov dword [ebp - 0x18], ebx
ja 0x54d1d0
cmp esi, dword [edi + 4]
jae 0x54d1d5
call fcn.005532de
mov eax, edi
cmp esi, dword [eax + 8]
jb 0x54d1e1
call fcn.005532de
mov ecx, dword [esi + 0x60]
lea esi, [ebp - 0x24c]
call fcn.0054d040
mov dword [ebp - 0x64], eax
mov esi, dword [edi + 4]
test esi, esi
mov byte [ebp - 4], 3
je 0x54d8ed
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, esi
sar eax, 7
cmp eax, dword [ebp - 0x10]
jbe 0x54d8ed
cmp esi, ecx
jbe 0x54d21d
call fcn.005532de
mov dword [ebp - 0x5c], esi
add esi, ebx
cmp esi, dword [edi + 8]
ja 0x54d22c
cmp esi, dword [edi + 4]
jae 0x54d231
call fcn.005532de
mov eax, edi
cmp esi, dword [eax + 8]
jb 0x54d23d
call fcn.005532de
mov ecx, dword [esi + 0x24]
lea esi, [ebp - 0x50]
call fcn.0054d040
mov dword [ebp - 0x5c], eax
mov esi, dword [edi + 4]
test esi, esi
mov byte [ebp - 4], 4
je 0x54d8ed
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, esi
sar eax, 7
cmp eax, dword [ebp - 0x10]
jbe 0x54d8ed
cmp esi, ecx
jbe 0x54d276
call fcn.005532de
mov dword [ebp - 0x54], esi
add esi, ebx
cmp esi, dword [edi + 8]
ja 0x54d285
cmp esi, dword [edi + 4]
jae 0x54d28a
call fcn.005532de
mov eax, edi
cmp esi, dword [eax + 8]
jb 0x54d296
call fcn.005532de
mov ecx, dword [esi + 4]
lea esi, [ebp - 0x1dc]
call fcn.0054d040
mov dword [ebp - 0x54], eax
mov esi, dword [edi + 4]
test esi, esi
mov byte [ebp - 4], 5
je 0x54d8ed
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, esi
sar eax, 7
cmp eax, dword [ebp - 0x10]
jbe 0x54d8ed
cmp esi, ecx
jbe 0x54d2d2
call fcn.005532de
mov dword [ebp - 0x28], esi
add esi, ebx
cmp esi, dword [edi + 8]
ja 0x54d2e1
cmp esi, dword [edi + 4]
jae 0x54d2e6
call fcn.005532de
cmp esi, dword [edi + 8]
jb 0x54d2f0
call fcn.005532de
mov ecx, dword [esi]
lea esi, [ebp - 0x1a4]
call fcn.0054d040
lea ecx, [ebp + 0x54]
push ecx
push eax
lea edx, [ebp - 0x16c]
push edx
mov byte [ebp - 4], 6
call fcn.0040cec0
mov ecx, dword [ebp - 0x54]
push ecx
push eax
lea edx, [ebp - 0x134]
push edx
mov byte [ebp - 4], 7
call fcn.0040cec0
lea ecx, [ebp + 0x54]
push ecx
push eax
lea edx, [ebp - 0xfc]
push edx
mov byte [ebp - 4], 8
call fcn.0040cec0
add esp, 0x24
mov ebx, eax
mov esi, dword [edi + 4]
test esi, esi
mov byte [ebp - 4], 9
je 0x54d8ed
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, esi
sar eax, 7
cmp eax, dword [ebp - 0x10]
jbe 0x54d8ed
cmp esi, ecx
jbe 0x54d36c
call fcn.005532de
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
add esi, eax
cmp esi, dword [edi + 8]
ja 0x54d37e
cmp esi, dword [edi + 4]
jae 0x54d383
call fcn.005532de
mov eax, edi
cmp esi, dword [eax + 8]
jb 0x54d38f
call fcn.005532de
add esi, 8
push esi
lea ecx, [ebp - 0xc4]
push ebx
push ecx
call fcn.0040cec0
lea edx, [ebp + 0x54]
push edx
push eax
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040cec0
mov ecx, dword [ebp - 0x5c]
push ecx
push eax
lea edx, [ebp - 0x230]
push edx
mov byte [ebp - 4], 0xb
call fcn.0040cec0
lea ecx, [ebp + 0x54]
push ecx
push eax
lea edx, [ebp - 0x150]
push edx
mov byte [ebp - 4], 0xc
call fcn.0040cec0
add esp, 0x30
mov ebx, eax
mov esi, dword [edi + 4]
test esi, esi
mov byte [ebp - 4], 0xd
je 0x54d8ed
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, esi
sar eax, 7
cmp eax, dword [ebp - 0x10]
jbe 0x54d8ed
cmp esi, ecx
jbe 0x54d40f
call fcn.005532de
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
add esi, eax
cmp esi, dword [edi + 8]
ja 0x54d421
cmp esi, dword [edi + 4]
jae 0x54d426
call fcn.005532de
mov eax, edi
cmp esi, dword [eax + 8]
jb 0x54d432
call fcn.005532de
add esi, 0x28
push esi
lea ecx, [ebp - 0x1c0]
push ebx
push ecx
call fcn.0040cec0
lea edx, [ebp + 0x54]
push edx
push eax
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 4], 0xe
call fcn.0040cec0
add esp, 0x18
mov ebx, eax
mov esi, dword [edi + 4]
test esi, esi
mov byte [ebp - 4], 0xf
je 0x54d8ed
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, esi
sar eax, 7
cmp eax, dword [ebp - 0x10]
jbe 0x54d8ed
cmp esi, ecx
jbe 0x54d488
call fcn.005532de
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
add esi, ecx
cmp esi, dword [edi + 8]
ja 0x54d49a
cmp esi, dword [edi + 4]
jae 0x54d49f
call fcn.005532de
mov eax, edi
cmp esi, dword [eax + 8]
jb 0x54d4ab
call fcn.005532de
add esi, 0x44
push esi
lea edx, [ebp - 0x1f8]
push ebx
push edx
call fcn.0040cec0
lea ecx, [ebp + 0x54]
push ecx
push eax
lea edx, [ebp - 0xe0]
push edx
mov byte [ebp - 4], 0x10
call fcn.0040cec0
mov ecx, dword [ebp - 0x64]
push ecx
push eax
lea edx, [ebp - 0x188]
push edx
mov byte [ebp - 4], 0x11
call fcn.0040cec0
lea ecx, [ebp + 0x54]
push ecx
push eax
lea edx, [ebp - 0x8c]
push edx
mov byte [ebp - 4], 0x12
call fcn.0040cec0
add esp, 0x30
mov ebx, eax
mov esi, dword [edi + 4]
test esi, esi
mov byte [ebp - 4], 0x13
je 0x54d8ed
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, esi
sar eax, 7
cmp eax, dword [ebp - 0x10]
jbe 0x54d8ed
cmp esi, ecx
jbe 0x54d52b
call fcn.005532de
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
add esi, eax
cmp esi, dword [edi + 8]
ja 0x54d53d
cmp esi, dword [edi + 4]
jae 0x54d542
call fcn.005532de
mov eax, edi
cmp esi, dword [eax + 8]
jb 0x54d54e
call fcn.005532de
add esi, 0x64
push esi
lea ecx, [ebp - 0x214]
push ebx
push ecx
call fcn.0040cec0
push 0x596ee4
push eax
lea edx, [ebp + 0x1c]
push edx
mov byte [ebp - 4], 0x14
call fcn.0040cf70
add esp, 0x18
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0x15
call fcn.00408a50
mov esi, 0x10
cmp dword [ebp + 0x34], esi
jb 0x54d59c
mov eax, dword [ebp + 0x20]
push eax
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x1fc], esi
mov ebx, 0xf
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
jb 0x54d5c6
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x74], esi
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x200], 0
mov byte [ebp - 0x210], 0
jb 0x54d5f1
mov edx, dword [ebp - 0x88]
push edx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x170], esi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
jb 0x54d619
mov eax, dword [ebp - 0x184]
push eax
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0xc8], esi
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x174], 0
mov byte [ebp - 0x184], 0
jb 0x54d647
mov ecx, dword [ebp - 0xdc]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x1e0], esi
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xcc], 0
mov byte [ebp - 0xdc], 0
jb 0x54d675
mov edx, dword [ebp - 0x1f4]
push edx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x100], esi
mov dword [ebp - 0x1e0], ebx
mov dword [ebp - 0x1e4], 0
mov byte [ebp - 0x1f4], 0
jb 0x54d6a3
mov eax, dword [ebp - 0x114]
push eax
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x1a8], esi
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0x104], 0
mov byte [ebp - 0x114], 0
jb 0x54d6d1
mov ecx, dword [ebp - 0x1bc]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x138], esi
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x1ac], 0
mov byte [ebp - 0x1bc], 0
jb 0x54d6ff
mov edx, dword [ebp - 0x14c]
push edx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x218], esi
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
jb 0x54d72d
mov eax, dword [ebp - 0x22c]
push eax
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x90], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
jb 0x54d75b
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0xac], esi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
jb 0x54d789
mov edx, dword [ebp - 0xc0]
push edx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0xe4], esi
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xc0], 0
jb 0x54d7b7
mov eax, dword [ebp - 0xf8]
push eax
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x11c], esi
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe8], 0
mov byte [ebp - 0xf8], 0
jb 0x54d7e5
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x154], esi
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jb 0x54d813
mov edx, dword [ebp - 0x168]
push edx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x18c], esi
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
jb 0x54d841
mov eax, dword [ebp - 0x1a0]
push eax
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x1c4], esi
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x190], 0
mov byte [ebp - 0x1a0], 0
jb 0x54d86f
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x38], esi
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1c8], 0
mov byte [ebp - 0x1d8], 0
jb 0x54d897
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x234], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov byte [ebp - 4], 2
jb 0x54d8c0
mov eax, dword [ebp - 0x248]
push eax
call fcn.0055215c
add esp, 4
mov esi, dword [ebp - 0x10]
add esi, 1
mov ecx, edi
mov dword [ebp - 0x10], esi
call fcn.0050cfd0
cmp esi, eax
jb 0x54d191
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.0054cca0
mov edi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x54d144
call fcn.00511960
lea ecx, [ebp - 0x50]
push ecx
call fcn.004ae0d0
lea edx, [ebp + 0x7c]
push edx
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0x16
call fcn.0040cec0
add esp, 0x10
cmp dword [ebp - 0x38], 0x10
mov byte [ebp - 4], 0x18
jb 0x54d926
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0055215c
add esp, 4
push 1
push 0xffffffffffffffff
lea edx, [ebp - 0x14]
mov esi, 0xf
push edx
lea ecx, [ebp]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], 0
mov byte [ebp - 0x14], 0x5c
call fcn.00405180
cmp eax, 0xffffffff
je 0x54da83
push eax
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0040dd40
cmp dword [ebp + 0x34], 0x10
jb 0x54d974
mov eax, dword [ebp + 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x54d97a
xor edi, edi
jmp 0x54d9c9
lea eax, [ebp + 0x20]
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x54d9c5
lea eax, [edi + edi]
call fcn.00553150
mov esi, esp
cmp esi, ebx
je 0x54d9c0
mov ecx, dword [ebp - 0x18]
push edi
push esi
push 0xffffffffffffffff
push ecx
push ebx
push 0x3a8
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov esi, 0xf
jmp 0x54d9c7
mov esi, 0xf
xor eax, eax
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x54da71
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x54da71
mov edi, 0x10
cmp dword [ebp + 0x34], edi
jb 0x54d9fe
mov edx, dword [ebp + 0x20]
push edx
call fcn.0055215c
add esp, 4
cmp dword [ebp + 0x18], edi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x30], ebx
mov byte [ebp + 0x20], 0
jb 0x54da19
mov eax, dword [ebp + 4]
push eax
call fcn.0055215c
add esp, 4
cmp dword [ebp + 0x50], edi
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], 0
jb 0x54da34
mov ecx, dword [ebp + 0x3c]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [ebp + 0x6c], edi
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x4c], ebx
mov byte [ebp + 0x3c], 0
jb 0x54da4f
mov edx, dword [ebp + 0x58]
push edx
call fcn.0055215c
add esp, 4
cmp dword [ebp + 0x94], edi
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x58], 0
jb 0x54db59
mov eax, dword [ebp + 0x80]
push eax
jmp 0x54db51
cmp dword [ebp + 0x34], 0x10
jb 0x54da83
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0055215c
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.004b2860
push 0x40000000
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ebp - 4], 0x19
mov byte [ecx + 4], 0
call fcn.0040a080
lea ecx, [ebp - 0x34]
call fcn.004b30d0
cmp eax, ebx
mov edi, 0x10
je 0x54dae5
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x3c]
jae 0x54dad0
lea eax, [ebp + 0x3c]
mov ecx, dword [ebp + 0x4c]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.004b2870
lea ecx, [ebp - 0x34]
call fcn.004b2a30
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x18
call fcn.004b2ee0
cmp dword [ebp + 0x18], edi
jb 0x54db02
mov edx, dword [ebp + 4]
push edx
call fcn.0055215c
add esp, 4
cmp dword [ebp + 0x50], edi
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], 0
jb 0x54db1d
mov eax, dword [ebp + 0x3c]
push eax
call fcn.0055215c
add esp, 4
cmp dword [ebp + 0x6c], edi
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x4c], ebx
mov byte [ebp + 0x3c], 0
jb 0x54db38
mov ecx, dword [ebp + 0x58]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [ebp + 0x94], edi
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x58], 0
jb 0x54db59
mov edx, dword [ebp + 0x80]
push edx
call fcn.0055215c
add esp, 4
lea esp, [ebp - 0x25c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00552d63
add ebp, 0x74
mov esp, ebp
pop ebp
ret 0x1c