Function at 0x412547
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd10
call fcn.00412afe
mov eax, dword [ebp + 8]
push eax
mov dword [0x4290a4], eax
call sub.mxdlgsup.dll_MXLoadLanguageDll
mov dword [0x4290a8], eax
call fcn.0041291d
test al, al
jne 0x412809
push esi
push edi
call fcn.0040a056
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x10
call fcn.00417c5c
cmp eax, edi
pop ecx
je 0x4125a3
mov ecx, eax
call fcn.0040351a
mov dword [ebp - 4], eax
jmp 0x4125a6
mov dword [ebp - 4], edi
lea ecx, [ebp - 0xd10]
call fcn.00404cee
push 0xee
lea ecx, [ebp - 0xd10]
push dword [0x4290a4]
call fcn.004059fa
test eax, eax
jne 0x4127db
push dword [0x4290a8]
lea ecx, [ebp - 0xd10]
call fcn.00405a10
mov esi, eax
cmp esi, edi
je 0x412662
lea eax, [ebp - 0x180]
mov dword [ebp - 0x18], edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.004013fa
pop ecx
lea eax, [ebp - 0x180]
push eax
push esi
push 2
lea eax, [ebp - 0x18]
push dword [0x4290a8]
push eax
call fcn.00412822
mov ecx, dword [ebp - 0x18]
add esp, 0x14
cmp ecx, edi
je 0x412628
call fcn.00402193
mov esi, eax
jmp 0x41262a
xor esi, esi
lea ecx, [ebp - 0x248]
call fcn.00404b83
test eax, eax
jne 0x41264d
lea eax, [ebp - 0x180]
push 0x10
push eax
push esi
push edi
call dword [ebp - 0x240]
add esp, 0x10
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
je 0x4127db
call fcn.00401c6b
jmp 0x4127db
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x41280f
cmp byte [ebx], 0
je 0x41280f
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41280f
mov ax, word [0x4290ac]
push 0x18
mov dword [ebp - 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov word [ebp - 0x7c], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x7a]
mov esi, 0x425d60
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [ebp + 8]
lea eax, [ebp + 8]
movsw word es:[edi], word [esi]
push eax
push ebx
movsb byte es:[edi], byte [esi]
call fcn.00409d4a
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x41275e
push 1
pop edi
cmp dword [ebp + 0x10], 0
jne 0x41275e
movsx eax, byte [esi]
push eax
call fcn.004185ed
cmp eax, 0x41
pop ecx
je 0x41273f
cmp eax, 0x50
je 0x4126ff
cmp eax, 0x57
jne 0x412748
lea eax, [ebp - 0x7c]
push 0x4251fc
push eax
call fcn.00417450
pop ecx
pop ecx
jmp 0x412748
inc esi
xor eax, eax
inc esi
mov dword [ebp - 0xc], edi
mov cl, byte [esi]
test cl, cl
je 0x41272e
cmp cl, 0x2f
je 0x41271a
mov cl, byte [eax + esi + 1]
inc eax
test cl, cl
jne 0x41270c
test eax, eax
je 0x41272e
mov cl, byte [eax + esi]
cmp cl, 0x20
je 0x41272b
cmp cl, 0x2f
jne 0x41272e
dec eax
jne 0x41271e
inc eax
push eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00418900
add esp, 0xc
jmp 0x412748
lea eax, [esi + 2]
mov dword [ebp + 0x10], edi
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.00409d4a
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4126ca
cmp byte [ebp - 0x7c], 0
jne 0x41279d
mov cl, byte [ebx]
xor eax, eax
test cl, cl
je 0x41278e
cmp cl, 0x2f
je 0x41277a
mov cl, byte [eax + ebx + 1]
inc eax
test cl, cl
jne 0x41276c
test eax, eax
je 0x41278e
mov cl, byte [eax + ebx]
cmp cl, 0x20
je 0x41278b
cmp cl, 0x2f
jne 0x41278e
dec eax
jne 0x41277e
inc eax
push eax
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00418900
add esp, 0xc
push dword [ebp - 8]
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0xd10]
push dword [ebp - 0xc]
push eax
call fcn.00407849
test eax, eax
jge 0x4127c8
push 0
push 0x4251fc
lea ecx, [ebp - 0xd10]
call fcn.00407727
xor edi, edi
call fcn.004129c5
lea ecx, [ebp - 0xd10]
call fcn.00405cb9
pop ebx
cmp dword [ebp - 4], edi
pop edi
pop esi
je 0x4127f3
mov ecx, dword [ebp - 4]
call fcn.004128f9
push dword [ebp - 4]
call fcn.00417b50
pop ecx
call dword [sym.imp.ole32.dll_OleUninitialize]
call fcn.0040a07b
lea ecx, [ebp - 0xd10]
call fcn.0040538f
xor eax, eax
leave
ret 0x10
push edi
push 0x4251fc
lea ecx, [ebp - 0xd10]
call fcn.00407727
jmp 0x4127ca