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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd95d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0xc
mov dword [ebp - 0x28], 0
push str.msftedit.dll
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00408d10
mov dword [ebp - 4], 0
lea edx, [esi + 0x44]
push ecx
mov ecx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.0043de40
add esp, 4
test eax, eax
js 0x43e29a
push 0xb8
lea eax, [esi + 0xbc]
push 0
push eax
call fcn.004ad7b0
mov dword [esi + 0xb8], 0xbc
add esp, 0xc
mov dword [esi + 0xbc], 0x8001003f
mov dword [esi + 0xd0], 0x10001
mov dword [esi + 0xd4], 0x2d0
mov dword [esi + 0x10], 4
movzx edx, byte [ebx + 0x340]
shl edx, 3
xor edx, dword [esi + 0x14]
and edx, 8
xor edx, dword [esi + 0x14]
mov dword [esi + 0x14], edx
mov ecx, edx
mov eax, dword [ebx + 0x378]
mov dword [esi + 0x1c], eax
mov eax, 4
test edi, edi
je 0x43e1ba
mov eax, dword [edi + 0x20]
mov dword [esi + 0x10], eax
test eax, 0x100080
jne 0x43e1ba
or ecx, 2
test al, 1
je 0x43e1c5
mov eax, 3
jmp 0x43e1ce
test al, 2
je 0x43e1d5
mov eax, 2
mov word [esi + 0xd0], ax
or ecx, 0x20
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dword [esi + 0x14], ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43e201
push 0xc
push str.msftedit.dll
lea ecx, [ebp - 0x28]
call fcn.00408d10
mov eax, dword fs:[0x2c]
lea ebx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae ebx, dword [ebp - 0x28]
mov ecx, dword [eax]
mov eax, dword [0x52a45c]
cmp eax, dword [ecx + 4]
jg 0x43e2f2
xor eax, eax
mov ecx, 0x800
cmp byte [0x52a460], al
cmovne eax, ecx
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x43e25c
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43e25c
lea ecx, [ebp - 0x2c]
push ecx
push esi
push 0
call eax
mov eax, dword [ebp - 0x2c]
lea ebx, [esi + 0xc]
push ebx
push 0x4f9140
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
js 0x43e29a
test edi, edi
je 0x43e293
mov edx, dword [edi + 0x24]
test edx, edx
je 0x43e293
mov ecx, dword [ebx]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
js 0x43e29a
mov esi, 1
jmp 0x43e29c
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43e2d2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43e2c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43e33e
push edx
push ecx
call fcn.004a8c37
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret 8
push 0x52a45c
call fcn.004a8d78
add esp, 4
cmp dword [0x52a45c], 0xffffffff
jne 0x43e225
push str.AddDllDirectory
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
push 0x52a45c
setne byte [0x52a460]
call fcn.004a8d2e
add esp, 4
jmp 0x43e225
call fcn.004b040f
int3