Function at 0x51d4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5dde58
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
xor esi, esi
mov dword [esp + 0x18], esi
mov eax, 7
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x2c], dx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x80], esi
cmp ebx, edi
jl 0x51d5a0
cmp edi, 0xffffffff
je 0x51d5a0
push 0xffffffffffffffff
mov dword [ebp + 0x14], eax
push esi
lea ecx, [esp + 0x34]
xor eax, eax
push ecx
mov dword [ebp + 0x10], esi
mov ecx, ebp
mov word [ebp], ax
call fcn.00402610
mov edx, dword [esp + 0x48]
push edx
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], esi
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x40], 8
jb 0x51d6d9
mov eax, dword [esp + 0x2c]
push eax
jmp 0x51d6d1
cmp dword [ecx + 0x10], esi
je 0x51d6fc
mov ecx, dword [ecx - 0x274]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, ebx
jle 0x51d693
cmp edi, 0xffffffff
jne 0x51d5c5
mov edi, eax
inc eax
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x20]
call fcn.00421b20
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0x274]
push 0
push 0x44b
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 1
cmp dword [edi + 0x10], ebx
jle 0x51d62b
cmp word [esi], 0
je 0x51d62b
cmp word [esi], 0xd
jne 0x51d622
mov edx, 0xa
mov word [esi], dx
add esi, 2
cmp word [esi], 0
jne 0x51d614
lea ecx, [esp + 0x18]
call fcn.004215e0
cmp dword [edi + 0x10], ebx
jne 0x51d691
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004553a0
add esp, 0xc
lea edx, [esp + 0x2c]
mov byte [esp + 0x80], 1
cmp edx, eax
je 0x51d668
push 0xffffffffffffffff
push 0
push eax
mov ecx, edx
call fcn.00402610
mov eax, dword [esp + 0x6c]
push eax
mov byte [esp + 0x84], 0
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x51d691
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00584768
add esp, 4
xor esi, esi
push 0xffffffffffffffff
xor ecx, ecx
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], esi
push esi
lea edx, [esp + 0x34]
mov word [ebp], cx
push edx
mov ecx, ebp
call fcn.00402610
mov eax, dword [esp + 0x48]
push eax
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], esi
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x40], 8
jb 0x51d6d9
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00584768
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00585b7b
add esp, 0x70
ret 0xc
lea edx, [esp + 0x50]
push edx
call fcn.005178c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 2
cmp ecx, eax
je 0x51d71f
push 0xffffffffffffffff
push esi
push eax
call fcn.00402610
mov edx, dword [esp + 0x6c]
push edx
mov byte [esp + 0x84], 0
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x51d748
mov eax, dword [esp + 0x50]
push eax
call fcn.00584768
add esp, 4
cmp ebx, edi
jge 0x51d7a2
sub edi, ebx
push edi
push ebx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x38]
call fcn.00422020
lea edx, [esp + 0x2c]
mov byte [esp + 0x80], 3
cmp edx, eax
je 0x51d779
push 0xffffffffffffffff
push esi
push eax
mov ecx, edx
call fcn.00402610
mov eax, dword [esp + 0x6c]
push eax
mov byte [esp + 0x84], 0
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x51d7a2
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00584768
add esp, 4
push 1
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.004553a0
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 4
cmp ecx, eax
je 0x51d7cf
push 0xffffffffffffffff
push esi
push eax
call fcn.00402610
mov edx, dword [esp + 0x6c]
push edx
mov byte [esp + 0x84], 0
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x51d693
mov eax, dword [esp + 0x50]
push eax
call fcn.00584768
add esp, 4
jmp 0x51d693