Function at 0x412a75
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x24
or dword [esp + 0xc], 0xffffffff
push ebx
push ebp
push 0x7d6
xor ebx, ebx
push 0x618
mov ebp, ebx
call fcn.00401286
mov dword [esp + 0x18], eax
test eax, eax
je 0x412e9b
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esi + 0x4c]
mov dword [esp + 0x24], edi
mov al, byte [edi + 0x1d]
mov byte [esp + 0x13], al
lea eax, [edi + 0x80]
push eax
mov dword [esp + 0x30], eax
call fcn.004227b8
test eax, eax
je 0x412ad1
push esi
call fcn.004227f8
jmp 0x412e99
cmp byte [edi + 0x38c], bl
mov ecx, 0x38c
mov eax, 0x80
cmovne eax, ecx
add eax, edi
push eax
call fcn.00403edb
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x412b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412b08
mov byte [edi + 0x23], bl
jmp 0x412e99
lea eax, [edi + 0x80]
push eax
push 2
jmp 0x412b9a
push eax
call fcn.004046fb
mov dword [edi + 0x78], eax
cmp byte [edi + 0x38c], bl
je 0x412b36
lea eax, [edi + 0x80]
push eax
call fcn.004046b9
mov dword [edi + 0x78], eax
push dword [esp + 0x1c]
call fcn.00404796
mov dword [esp + 0x14], eax
test eax, eax
jg 0x412b52
push edi
call fcn.004138d0
jmp 0x412e53
cmp eax, 0x320c800
jl 0x412b64
push dword [esp + 0x2c]
push 0x84
jmp 0x412b9a
push 0x7d7
add eax, 3
push eax
call fcn.00401286
mov ebp, eax
mov dword [esp + 0x30], ebp
test ebp, ebp
je 0x412e99
push dword [esp + 0x14]
push ebp
push dword [esp + 0x24]
call fcn.00403eb1
cmp eax, dword [esp + 0x14]
je 0x412bc0
push dword [esp + 0x2c]
push 4
call fcn.00404ac5
mov esi, dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push esi
push dword [0x430cf4]
call fcn.00403461
jmp 0x412e99
push dword [esp + 0x1c]
call fcn.00403e76
mov eax, dword [esp + 0x14]
or dword [esp + 0x1c], 0xffffffff
push eax
push ebp
mov word [eax + ebp], bx
mov byte [eax + ebp + 2], bl
call fcn.0040fcde
test eax, eax
je 0x412c21
lea eax, [edi + 0x80]
push eax
push 0x83
call fcn.00404ac5
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x101
push dword [esp + 0x24]
push dword [0x430cf4]
call fcn.00403461
cmp eax, 2
je 0x412e99
push edi
call fcn.004138d0
mov cl, byte [edi + 0x1c]
mov eax, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
cmp cl, 2
je 0x412e0c
cmp cl, 3
je 0x412dc7
cmp cl, 4
je 0x412d1f
cmp cl, 1
je 0x412cd9
mov eax, 0xfeff
cmp word [ebp], ax
jne 0x412c73
lea eax, [ebp + 2]
mov byte [edi + 0x20], 1
mov dword [esp + 0x28], eax
jmp 0x412d21
cmp byte [ebp], 0xef
jne 0x412c95
cmp byte [ebp + 1], 0xbb
jne 0x412c95
cmp byte [ebp + 2], 0xbf
jne 0x412c95
lea eax, [ebp + 3]
mov byte [edi + 0x20], 1
mov dword [esp + 0x2c], eax
jmp 0x412dc7
push dword [esp + 0x14]
push ebp
call fcn.004223b4
test eax, eax
jne 0x412d1f
push dword [esp + 0x14]
push ebp
call fcn.004222da
test eax, eax
jne 0x412e0c
push dword [esp + 0x14]
push ebp
call fcn.0040569f
test eax, eax
jne 0x412dc5
push dword [esp + 0x14]
push ebp
call fcn.004222fe
test eax, eax
je 0x412e0c
push ebx
push ebp
push esi
call fcn.004101c5
push ebp
call fcn.0040fcab
mov byte [edi + 0x1f], al
mov byte [edi + 0x1c], 2
cmp byte [ebp], bl
je 0x412e53
mov edi, esi
mov ebx, ebp
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00406820
push dword [esp + 0x18]
mov esi, eax
push ebx
push edi
call fcn.00413642
cmp byte [esi], 0
mov ebx, esi
jne 0x412cfb
jmp 0x412e49
mov eax, ebp
push 1
push eax
push esi
call fcn.004101c5
mov eax, dword [esp + 0x28]
mov edx, ebx
movzx ecx, word [eax]
lea esi, [eax + 2]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x38]
test ecx, ecx
je 0x412d85
mov dword [esp + 0x14], 0xa
cmp ecx, 0xa
je 0x412d82
mov edi, dword [esp + 0x24]
cmp ecx, 0xd
je 0x412d70
mov esi, dword [esp + 0x2c]
movzx ecx, word [esi]
add esi, 2
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x38]
test ecx, ecx
jne 0x412d4a
jmp 0x412d85
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax]
mov eax, dword [esp + 0x28]
cmp cx, word [esp + 0x14]
je 0x412d85
xor edx, edx
inc edx
mov byte [edi + 0x1f], dl
mov byte [edi + 0x1c], 4
cmp word [eax], bx
je 0x412e53
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.0040685d
push dword [esp + 0x18]
mov esi, eax
push ebp
push edi
call fcn.0041354d
mov ebp, esi
cmp word [esi], bx
jne 0x412d9d
mov ebp, dword [esp + 0x30]
jmp 0x412e4b
mov eax, ebp
push ebx
push eax
push esi
call fcn.004101c5
push dword [esp + 0x2c]
call fcn.0040fcab
mov byte [edi + 0x1f], al
mov eax, dword [esp + 0x2c]
mov byte [edi + 0x1c], 3
cmp byte [eax], bl
je 0x412e53
mov ebx, esi
mov edi, eax
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00406820
push dword [esp + 0x18]
mov esi, eax
push edi
push ebx
call fcn.004136d8
cmp byte [esi], 0
mov edi, esi
jne 0x412deb
jmp 0x412e49
push ebx
push ebp
push esi
call fcn.004101c5
push ebp
call fcn.0040fcab
mov byte [edi + 0x1f], al
mov byte [edi + 0x1c], 2
cmp byte [ebp], bl
je 0x412e53
mov ebx, esi
mov edi, ebp
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00406820
push dword [esp + 0x18]
mov esi, eax
push edi
push ebx
call fcn.004135a0
cmp byte [esi], 0
mov edi, esi
jne 0x412e2a
xor ebx, ebx
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
cmp byte [esp + 0x13], 0
jne 0x412e63
cmp byte [edi + 0x1e], 0
jne 0x412e63
mov byte [edi + 0x1d], bl
push esi
mov word [edi + 0x22], 0
call fcn.004141f4
push edi
call fcn.0040ea3e
push esi
call fcn.00412ebd
push ebx
push esi
call fcn.004100a1
push esi
call fcn.0040fee6
push 1
push ebx
mov dword [edi + 0x10], ebx
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor ebx, ebx
inc ebx
pop edi
pop esi
push dword [esp + 0x14]
call fcn.00403e76
push dword [esp + 0x18]
call fcn.00404070
push ebp
call fcn.00404070
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret 4