Function at 0x4810b4
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
push 0xffffffffffffffff
push 0x48f024
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4b3074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp + 0x60], esi
mov eax, dword [ebp + 0x70]
lea ecx, [ebp]
mov byte [eax], 1
call fcn.0047456d
lea ecx, [ebp + 0x28]
call fcn.00472387
mov edi, dword [ebp + 0x6c]
lea ecx, [ebp]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
push dword [edi]
call fcn.0047458e
test al, al
je 0x481343
mov eax, dword [esi + 0x48]
cmp eax, 2
je 0x4813be
test eax, eax
jne 0x48122d
mov ecx, edi
call fcn.004718e0
push edi
inc eax
lea ecx, [ebp + 0x38]
push eax
call fcn.00471cfe
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x48]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
call fcn.00471c74
mov byte [ebp - 4], 3
push dword [ebp + 0x38]
call fcn.0042cb3a
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x60]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x44]
pop ecx
push eax
mov eax, dword [ebp + 0x60]
xor ecx, ecx
mov esi, dword [esi + 0x50]
add eax, 0xd8
cmp byte [edi + 0x3b], cl
cmovne ecx, eax
mov eax, edi
mov edx, dword [esi]
add eax, 0xc0
push ecx
xor ecx, ecx
cmp byte [edi + 0xcb], cl
cmovne ecx, eax
mov eax, edi
push ecx
push dword [eax + 0x74]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x48]
push esi
call dword [edx + 0x14]
mov edi, dword [ebp + 0x6c]
test eax, eax
je 0x4811bd
mov ebx, eax
jmp 0x481201
mov eax, dword [ebp + 0x44]
sub eax, ebx
je 0x48121b
sub eax, 1
je 0x48120f
sub eax, 1
je 0x481201
sub eax, 1
je 0x4811f7
sub eax, 1
je 0x4811eb
sub eax, 1
je 0x4811e4
mov ebx, 0x80004005
jmp 0x481201
mov ebx, 0x80004004
jmp 0x481201
mov esi, dword [ebp + 0x60]
mov dword [esi + 0x48], 3
jmp 0x48121e
mov eax, dword [ebp + 0x60]
mov dword [eax + 0x48], 2
push dword [ebp + 0x48]
call fcn.0042cb3a
pop ecx
jmp 0x4813be
mov esi, dword [ebp + 0x60]
mov dword [esi + 0x48], 1
jmp 0x48121e
mov esi, dword [ebp + 0x60]
mov byte [ebp - 4], bl
push dword [ebp + 0x48]
call fcn.0042cb3a
mov eax, dword [esi + 0x48]
pop ecx
cmp eax, 3
jne 0x48126a
mov ecx, edi
call fcn.0047c7f6
test al, al
jne 0x48125e
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.00481903
mov ebx, eax
test ebx, ebx
jne 0x4813be
mov ebx, 0x80004005
jmp 0x4813be
mov byte [esi + 0x174], 1
jmp 0x4813b9
cmp eax, 4
jne 0x4812e2
push edi
lea ecx, [ebp + 0x54]
call fcn.00472413
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 4
call fcn.0047c7f6
test al, al
jne 0x4812a1
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.00481903
test eax, eax
mov ebx, 0x80004005
cmovne ebx, eax
jmp 0x4812cd
mov edx, dword [ebp + 0x54]
mov ecx, dword [edi]
call fcn.00473d6e
test al, al
jne 0x4812d5
call fcn.00474e3e
push edi
lea ecx, [ebp + 0x54]
push ecx
push ecx
push eax
mov ecx, esi
call fcn.004817c9
mov ebx, eax
test ebx, ebx
jne 0x4812cd
mov ebx, 0x80004005
push dword [ebp + 0x54]
jmp 0x481204
push dword [ebp + 0x54]
call fcn.0042cb3a
jmp 0x4813b8
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x481303
call fcn.00473dd7
test al, al
jne 0x4813b9
push edi
push str.Cannot_delete_output_folder
jmp 0x481334
call fcn.00474a5a
test al, al
je 0x4813b9
mov ecx, dword [edi]
call fcn.00473adc
test al, al
jne 0x4813b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4813b9
push edi
push str.Cannot_delete_output_file
mov ecx, esi
call fcn.0048186d
test eax, eax
je 0x4813be
mov ebx, eax
jmp 0x4813be
mov ecx, dword [edi]
call fcn.0047548e
mov esi, eax
test esi, esi
js 0x4813b9
cmp word [ecx + esi*2 + 2], bx
je 0x4813b9
push edi
lea ecx, [ebp + 0x48]
call fcn.00472413
mov byte [ebp - 4], 5
mov edi, dword [ebp + 0x48]
cmp esi, dword [ebp + 0x4c]
jae 0x481375
xor eax, eax
mov dword [ebp + 0x4c], esi
mov word [edi + esi*2], ax
lea ecx, [ebp - 0x44]
call fcn.0047456d
lea ecx, [ebp - 0x1c]
call fcn.00472387
push ebx
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0047458e
test al, al
je 0x4813a9
mov edx, dword [ebp - 0x24]
test dl, 1
je 0x4813a9
and edx, 0xfffffffe
mov ecx, edi
call fcn.00473e35
push dword [ebp - 0x1c]
call fcn.0042cb3a
push edi
call fcn.0042cb3a
pop ecx
pop ecx
mov eax, dword [ebp + 0x70]
mov byte [eax], bl
push dword [ebp + 0x28]
call fcn.0042cb3a
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret 8