Function at 0x412e22
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x24
or dword [esp + 0x10], 0xffffffff
push ebx
push ebp
push esi
push edi
push 0x7d6
xor ebx, ebx
push 0x618
mov ebp, ebx
call fcn.00401224
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4131ed
mov esi, dword [esp + 0x38]
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.004221f2
test eax, eax
je 0x412e82
push esi
call fcn.00422232
mov esi, dword [esp + 0x1c]
jmp 0x4131ef
cmp byte [edi + 0x38c], bl
mov ecx, 0x38c
mov eax, 0x80
cmovne eax, ecx
add eax, edi
push eax
call fcn.00403c19
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x412ee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412eb6
mov byte [edi + 0x22], bl
jmp 0x412e79
lea eax, [edi + 0x80]
push eax
push 2
call fcn.004047a7
mov esi, dword [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push esi
push dword [0x430e4c]
call fcn.004031cc
jmp 0x4131ef
push eax
call fcn.0040446e
mov dword [edi + 0x78], eax
cmp byte [edi + 0x38c], bl
je 0x412f05
lea eax, [edi + 0x80]
push eax
call fcn.0040442c
mov dword [edi + 0x78], eax
push dword [esp + 0x20]
call fcn.00404509
mov dword [esp + 0x14], eax
test eax, eax
jg 0x412f21
push edi
call fcn.00413c27
jmp 0x4131a8
push 0x7d7
add eax, 3
push eax
call fcn.00401224
mov ebp, eax
mov dword [esp + 0x30], ebp
test ebp, ebp
je 0x412e79
push dword [esp + 0x14]
push ebp
push dword [esp + 0x28]
call fcn.00403bef
cmp eax, dword [esp + 0x14]
je 0x412f5c
push dword [esp + 0x2c]
push 4
jmp 0x412ebf
push dword [esp + 0x20]
call fcn.00403bb4
mov eax, dword [esp + 0x14]
or dword [esp + 0x20], 0xffffffff
push edi
mov word [eax + ebp], bx
mov byte [eax + ebp + 2], bl
call fcn.00413c27
mov cl, byte [edi + 0x1c]
mov eax, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
cmp cl, 2
je 0x413161
cmp cl, 3
je 0x41311c
cmp cl, 4
je 0x413074
cmp cl, 1
je 0x41302e
mov eax, 0xfeff
cmp word [ebp], ax
jne 0x412fc8
lea eax, [ebp + 2]
mov byte [edi + 0x1f], 1
mov dword [esp + 0x28], eax
jmp 0x413076
cmp byte [ebp], 0xef
jne 0x412fea
cmp byte [ebp + 1], 0xbb
jne 0x412fea
cmp byte [ebp + 2], 0xbf
jne 0x412fea
lea eax, [ebp + 3]
mov byte [edi + 0x1f], 1
mov dword [esp + 0x2c], eax
jmp 0x41311c
push dword [esp + 0x14]
push ebp
call fcn.00421df8
test eax, eax
jne 0x413074
push dword [esp + 0x14]
push ebp
call fcn.00421d1e
test eax, eax
jne 0x413161
push dword [esp + 0x14]
push ebp
call fcn.00405304
test eax, eax
jne 0x41311a
push dword [esp + 0x14]
push ebp
call fcn.00421d42
test eax, eax
je 0x413161
push ebx
push ebp
push esi
call fcn.004105a5
push ebp
call fcn.00410152
mov byte [edi + 0x1e], al
mov byte [edi + 0x1c], 2
cmp byte [ebp], bl
je 0x4131a8
mov edi, esi
mov ebx, ebp
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00406339
push dword [esp + 0x18]
mov esi, eax
push ebx
push edi
call fcn.00413996
cmp byte [esi], 0
mov ebx, esi
jne 0x413050
jmp 0x41319e
mov eax, ebp
push 1
push eax
push esi
call fcn.004105a5
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 0x4130da
mov dword [esp + 0x14], 0xa
cmp ecx, 0xa
je 0x4130d7
mov edi, dword [esp + 0x24]
cmp ecx, 0xd
je 0x4130c5
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 0x41309f
jmp 0x4130da
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax]
mov eax, dword [esp + 0x28]
cmp cx, word [esp + 0x14]
je 0x4130da
xor edx, edx
inc edx
mov byte [edi + 0x1e], dl
mov byte [edi + 0x1c], 4
cmp word [eax], bx
je 0x4131a8
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.00406376
push dword [esp + 0x18]
mov esi, eax
push ebp
push edi
call fcn.004138a1
mov ebp, esi
cmp word [esi], bx
jne 0x4130f2
mov ebp, dword [esp + 0x30]
jmp 0x4131a0
mov eax, ebp
push ebx
push eax
push esi
call fcn.004105a5
push dword [esp + 0x2c]
call fcn.00410152
mov byte [edi + 0x1e], al
mov eax, dword [esp + 0x2c]
mov byte [edi + 0x1c], 3
cmp byte [eax], bl
je 0x4131a8
mov ebx, esi
mov edi, eax
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00406339
push dword [esp + 0x18]
mov esi, eax
push edi
push ebx
call fcn.00413a2c
cmp byte [esi], 0
mov edi, esi
jne 0x413140
jmp 0x41319e
push ebx
push ebp
push esi
call fcn.004105a5
push ebp
call fcn.00410152
mov byte [edi + 0x1e], al
mov byte [edi + 0x1c], 2
cmp byte [ebp], bl
je 0x4131a8
mov ebx, esi
mov edi, ebp
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00406339
push dword [esp + 0x18]
mov esi, eax
push edi
push ebx
call fcn.004138f4
cmp byte [esi], 0
mov edi, esi
jne 0x41317f
xor ebx, ebx
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
cmp byte [esp + 0x13], 0
jne 0x4131b2
mov byte [edi + 0x1d], bl
push esi
mov word [edi + 0x21], 0
call fcn.0041454e
push edi
call fcn.0040eedd
push esi
call fcn.00413210
push ebx
push esi
call fcn.00410481
push esi
call fcn.004102c9
push 1
push ebx
mov dword [edi + 0x10], ebx
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor ebx, ebx
inc ebx
jmp 0x412e79
mov esi, eax
push dword [esp + 0x20]
call fcn.00403bb4
push esi
call fcn.00403dae
push ebp
call fcn.00403dae
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret 4