Function at 0x44d590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5840
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x478], eax
xor eax, eax
push esi
mov ebx, edx
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x474], ecx
mov dword [ebp - 0x464], eax
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44d61b
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x44d61b
push 0x52585c
lea edx, [ebp - 0x480]
push edx
mov dword [ebp - 0x480], 1
call fcn.004bfca7
push 3
push edi
xor edi, edi
call fcn.0043f3d0
mov esi, eax
xor ebx, ebx
add esp, 8
mov dword [ebp - 0x464], esi
cmp esi, ebx
jne 0x44d651
push 0x52585c
lea eax, [ebp - 0x484]
push eax
mov dword [ebp - 0x484], 2
call fcn.004bfca7
xor ecx, ecx
mov dword [ebp - 0x45c], ebx
mov word [ebp - 0x458], cx
mov dword [ebp - 0x230], ebx
cmp dword [esi], 1
je 0x44d677
mov dword [0x54fe74], 0x80000
jmp 0x44d690
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
lea edx, [ebp - 0x45c]
call fcn.0043e370
mov dword [0x54fe74], eax
cmp eax, ebx
je 0x44d6ab
push 0x52585c
lea edx, [ebp - 0x470]
push edx
mov dword [ebp - 0x470], 3
call fcn.004bfca7
cmp dword [esi], 1
je 0x44d6bc
mov dword [0x54fe74], 0x80000
jmp 0x44d6cf
mov edi, dword [esi + 4]
mov eax, dword [ebp - 0x468]
call fcn.0043e320
mov dword [0x54fe74], eax
mov eax, dword [ebp - 0x45c]
push 0x208
lea edx, [ebp - 0x22a]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x46c], eax
mov word [ebp - 0x22c], cx
call fcn.004c3610
add esp, 0xc
lea esp, [esp]
cmp ebx, dword [ebp - 0x46c]
jge 0x44d861
mov eax, 0x54fe78
xor edi, edi
cmp dword [eax], edi
jne 0x44d861
xor eax, eax
mov dword [ebp - 0x45c], edi
mov word [ebp - 0x458], ax
mov dword [ebp - 0x230], edi
cmp esi, edi
jne 0x44d741
mov dword [0x54fe74], 0x10000
inc ebx
jmp 0x44d700
cmp dword [esi], 1
je 0x44d753
mov dword [0x54fe74], 0x80000
inc ebx
jmp 0x44d700
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x45c]
call fcn.0043e370
mov dword [0x54fe74], eax
cmp eax, edi
jne 0x44d85b
lea eax, [ebp - 0x458]
lea edx, [eax + 2]
jmp 0x44d780
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x44d780
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
jge 0x44d7b0
cmp word [ebp + ecx*2 - 0x458], 0x2f
jne 0x44d7ad
mov edx, 0x5c
mov word [ebp + ecx*2 - 0x458], dx
inc ecx
jmp 0x44d791
mov edi, 0x54fe78
cmp dword [edi], 0
jne 0x44d861
push 0x20a
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004c3610
mov edx, dword [ebp - 0x468]
add esp, 0xc
lea ecx, [ebp - 0x458]
push ecx
push edx
push 0x5112b0
lea edx, [ebp - 0x22c]
call fcn.0044d920
add esp, 0xc
test byte [ebp - 0x250], 0x10
je 0x44d80f
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
jmp 0x44d81f
push ebx
push esi
lea ecx, [ebp - 0x22c]
call fcn.0043f630
add esp, 8
cmp dword [edi], 0
jne 0x44d861
mov edi, dword [ebp - 0x478]
test edi, edi
je 0x44d85b
lea ecx, [ebx + 1]
mov dword [ebp - 0x47c], ecx
fild dword [ebp - 0x47c]
fidiv dword [ebp - 0x46c]
fmul qword [0x51d120]
call fcn.004c4540
mov edx, dword [ebp - 0x474]
push edx
push eax
call edi
add esp, 8
inc ebx
jmp 0x44d700
mov bl, 1
mov dword [ebp - 4], 0xffffffff
jmp 0x44d8b9
test esi, esi
je 0x44d8f3
cmp dword [esi], 1
je 0x44d8ce
mov dword [0x54fe74], 0x80000
jmp 0x44d8f3
mov esi, dword [esi + 4]
call fcn.0043f190
mov dword [0x54fe74], eax
test esi, esi
je 0x44d8e4
call fcn.0043f480
mov edx, dword [ebp - 0x464]
push edx
call fcn.004bb4d8
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret