Function at 0x43b260
Capabilities:
Check if file exists
Get graphical window text

Disassembly:
sub esp, 0x2c
mov eax, dword [0x546560]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x48]
push 0
push 0
push 0x407
push eax
mov dword [esp + 0x2c], esi
call ebp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov ecx, 0xff
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x43b2ac
cmp dword [eax - 4], ecx
jge 0x43b2f9
mov edi, dword [eax - 8]
cmp edi, ecx
mov dword [esp + 0x38], edi
jle 0x43b2b9
mov ecx, edi
push ecx
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x43b2f9
lea ecx, [edi + edi + 2]
mov edi, dword [esp + 0x14]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x38]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [ecx - 8], edx
call fcn.00405590
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
push 0xff
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x14]
call fcn.004055c0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0x407
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x20]
mov word [ecx + eax*2], 0
mov eax, dword [esi + 0x4c]
push eax
call ebp
mov ebp, eax
mov eax, dword [esp + 0x10]
mov ecx, 0xff
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x43b359
cmp dword [eax - 4], ecx
jge 0x43b3a2
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x38], esi
jle 0x43b366
mov ecx, esi
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x43b3a2
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov dword [eax - 8], ecx
call fcn.00405590
mov eax, dword [esp + 0x10]
push 0xff
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.004055c0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x10]
push eax
call fcn.0043cd00
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004055c0
mov esi, dword [esp + 0x14]
mov ax, word [esi]
push eax
call fcn.005320d3
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
add esp, 4
test eax, eax
je 0x43b419
push esi
call ebx
mov esi, eax
mov ax, word [esi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
jne 0x43b404
mov eax, dword [esp + 0x14]
mov ecx, esi
sub ecx, eax
mov edi, dword [eax - 8]
sar ecx, 1
sub edi, ecx
lea edx, [edi + edi + 2]
push edx
push esi
push eax
call fcn.00531870
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [eax - 8], edi
call fcn.004055c0
mov edi, dword [esp + 0x14]
xor esi, esi
cmp word [edi], si
je 0x43b48b
mov ax, word [edi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
je 0x43b46a
test esi, esi
jne 0x43b46c
mov esi, edi
jmp 0x43b46c
xor esi, esi
push edi
call ebx
mov edi, eax
cmp word [edi], 0
jne 0x43b452
test esi, esi
je 0x43b48b
mov word [esi], 0
mov eax, dword [esp + 0x14]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
lea ecx, [esp + 0x10]
call fcn.004055c0
mov edi, dword [esp + 0x10]
mov ax, word [edi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
je 0x43b4bd
push edi
call ebx
mov edi, eax
mov ax, word [edi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
jne 0x43b4a8
mov eax, dword [esp + 0x10]
mov ecx, edi
sub ecx, eax
mov esi, dword [eax - 8]
sar ecx, 1
sub esi, ecx
lea edx, [esi + esi + 2]
push edx
push edi
push eax
call fcn.00531870
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [eax - 8], esi
call fcn.004055c0
mov edi, dword [esp + 0x10]
xor esi, esi
cmp word [edi], si
je 0x43b52f
mov ax, word [edi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
je 0x43b50e
test esi, esi
jne 0x43b510
mov esi, edi
jmp 0x43b510
xor esi, esi
push edi
call ebx
mov edi, eax
cmp word [edi], 0
jne 0x43b4f6
test esi, esi
je 0x43b52f
mov word [esi], 0
mov eax, dword [esp + 0x10]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
lea ecx, [esp + 0x18]
push 0x493e0
push ecx
call fcn.004bc8d0
mov al, byte [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 8
test al, al
je 0x43b887
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], 3
jge 0x43b7e2
mov edx, dword [0x546560]
mov eax, 0x5466c0
test eax, eax
mov dword [esp + 0x40], edx
je 0x43b5ae
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x43b5ae
push esi
lea ecx, [esp + 0x44]
call fcn.00405530
test eax, eax
je 0x43b5ae
mov ecx, dword [esp + 0x40]
inc esi
push esi
push 0x5466c0
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
call fcn.00405bb0
lea edx, [esp + 0x38]
push 0x3ea
push edx
call fcn.004bc8d0
mov esi, eax
mov eax, dword [0x546560]
mov ecx, 0x54847c
add esp, 8
test ecx, ecx
mov dword [esp + 0x20], eax
jne 0x43b5d8
xor eax, eax
jmp 0x43b5e3
push 0x54847c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
push 0x54847c
push eax
push ecx
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x2c]
push edx
call fcn.004059f0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
call fcn.00405440
lea ecx, [esp + 0x20]
call fcn.00405700
mov ecx, dword [0x546560]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x30]
push eax
call fcn.004059f0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.00405440
lea ecx, [esp + 0x24]
call fcn.00405700
mov edx, dword [0x546560]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x38]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x38]
call fcn.004059f0
lea edx, [esp + 0x28]
lea ecx, [esp + 0x2c]
push edx
call fcn.00405440
lea ecx, [esp + 0x28]
call fcn.00405700
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push 0
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x2c]
mov edx, dword [0x546564]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43b6d3
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x43b6d3
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43b6fe
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x43b6fe
mov edx, dword [esp + 0x30]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x34]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43b729
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x43b729
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x38]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43b754
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x43b754
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x40]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43b77f
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x43b77f
mov edx, dword [esp + 0x40]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43b7aa
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x43b7aa
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43ba48
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x43ba48
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x43ba48
push eax
call esi
cmp eax, 0xffffffff
je 0x43b7f2
test al, 0x10
jne 0x43b887
push 0x5466c0
lea ecx, [esp + 0x44]
call fcn.00405730
push 0x54847c
lea eax, [esp + 0x30]
push 0x3ea
push eax
call fcn.004bc8d0
add esp, 8
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00412f10
mov esi, dword [eax]
lea edx, [esp + 0x14]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00412dc0
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00412dc0
mov ecx, dword [eax]
mov edx, dword [esp + 0x1c]
push 0
push esi
push ecx
lea ecx, [edx + 4]
call fcn.0043ac60
lea ecx, [esp + 0x38]
call fcn.00405700
lea ecx, [esp + 0x34]
call fcn.00405700
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x40]
jmp 0x43ba31
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], 3
jge 0x43b92a
push 0x5466c0
lea ecx, [esp + 0x44]
call fcn.00405730
push 0x548474
lea eax, [esp + 0x30]
push 0x3ea
push eax
call fcn.004bc8d0
add esp, 8
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00412f10
mov esi, dword [eax]
lea edx, [esp + 0x10]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00412dc0
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00412dc0
mov ecx, dword [eax]
mov edx, dword [esp + 0x1c]
push 0
push esi
push ecx
lea ecx, [edx + 4]
call fcn.0043ac60
lea ecx, [esp + 0x38]
call fcn.00405700
lea ecx, [esp + 0x34]
call fcn.00405700
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x40]
jmp 0x43ba31
push eax
call esi
cmp eax, 0xffffffff
je 0x43b9a1
test al, 0x10
je 0x43b9a1
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esi + 0x50]
call fcn.004016f0
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0x124]
call fcn.004016f0
lea edx, [esp + 0x14]
lea ecx, [esi + 0x1fc]
push edx
call fcn.004129b0
lea eax, [esp + 0x10]
lea ecx, [esi + 0x200]
push eax
call fcn.004129b0
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 4
push 0x5466c0
lea ecx, [esp + 0x44]
call fcn.00405730
push 0x548474
lea ecx, [esp + 0x30]
push 0x3ea
push ecx
call fcn.004bc8d0
add esp, 8
lea edx, [esp + 0x34]
push eax
push edx
call fcn.00412f10
mov esi, dword [eax]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00412dc0
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00412dc0
mov edx, dword [eax]
mov eax, dword [esp + 0x1c]
push 0
push esi
push edx
lea ecx, [eax + 4]
call fcn.0043ac60
lea ecx, [esp + 0x38]
call fcn.00405700
lea ecx, [esp + 0x34]
call fcn.00405700
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x40]
call fcn.00405700
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 4