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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb985
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x53e200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
push 0x521890
lea ecx, [ebp - 0x28]
call fcn.00406420
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x5c]
mov dword [edx + 8], 1
push 0
mov eax, dword [ebp - 0x5c]
add eax, 0x44
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00437860
add esp, 0xc
test eax, eax
jge 0x437df5
jmp 0x437ffb
mov edx, dword [ebp - 0x5c]
add edx, 0xb8
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00437ae0
add esp, 8
test eax, eax
jge 0x437e14
jmp 0x437ffb
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x10], 4
mov ecx, dword [ebp + 8]
call fcn.00439780
mov byte [ebp - 0x5d], al
movzx edx, byte [ebp - 0x5d]
and edx, 1
shl edx, 3
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x14]
and ecx, 0xfffffff7
or ecx, edx
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp + 8]
call fcn.00439960
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x1c], eax
cmp dword [ebp + 0xc], 0
je 0x437e80
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x10]
and eax, 0x100080
jne 0x437e80
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x14]
or edx, 2
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x10]
and edx, 0
jne 0x437ec1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x10]
and ecx, 1
je 0x437ea7
mov edx, 3
mov eax, dword [ebp - 0x5c]
mov word [eax + 0xd0], dx
jmp 0x437ec1
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x10]
and edx, 2
je 0x437ec1
mov eax, 2
mov ecx, dword [ebp - 0x5c]
mov word [ecx + 0xd0], ax
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x14]
or eax, 0x20
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x14], eax
lea edx, [ebp - 0x58]
push edx
call fcn.00405c80
add esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
push str.msftedit50.dll
mov ecx, dword [ebp - 0x74]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0041e7f0
add esp, 0xc
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a7d0
lea ecx, [ebp - 0x40]
call fcn.00406380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00406380
lea ecx, [ebp - 0x28]
call fcn.004064a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x437f42
push 0x521890
lea ecx, [ebp - 0x28]
call fcn.00406350
lea ecx, [ebp - 0x28]
call fcn.004064a0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x437f6c
push str.CreateTextServices
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x437f7f
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x5c]
push eax
push 0
call dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc
push ecx
push 0x51f1a8
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ecx + 8]
call eax
cmp dword [ebp - 0x7c], 0
jge 0x437fb1
jmp 0x437ffb
cmp dword [ebp + 0xc], 0
je 0x437fe0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x24], 0
je 0x437fe0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x5c]
mov edx, dword [edx]
mov ecx, dword [eax + 0xc]
mov eax, dword [edx + 0x38]
call eax
test eax, eax
jge 0x437fe0
jmp 0x437ffb
mov dword [ebp - 0x80], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406380
mov eax, dword [ebp - 0x80]
jmp 0x43801a
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406380
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c626c
mov esp, ebp
pop ebp
ret 8