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

Disassembly:
push 0xffffffffffffffff
push 0x5f26fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x448
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [0x6707bc]
lea eax, [esp + 0x58]
mov dword [esp + 0x30], 7
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x3ff
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 0x78]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
push edi
push 9
push 0x110a
push edx
mov dword [esp + 0x470], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], edi
call ebp
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x10], ebx
je 0x5058c9
push ebx
lea ecx, [esi + 0x5c]
call fcn.005b9fc7
cmp eax, 0xffffffff
jne 0x505889
mov eax, dword [esi + 0x78]
push ebx
push 2
push 0x110a
push eax
call ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 1
mov ebx, eax
cmp ebx, edi
je 0x5058c5
mov edx, dword [esi + 0x78]
lea ecx, [esp + 0x30]
push ecx
push edi
push 0x110c
push edx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x68], 0
call ebp
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
call fcn.005bc5aa
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov ebx, edi
jmp 0x5058c9
mov dword [esp + 0x24], edi
mov edx, dword [esi + 0x78]
push edi
push edi
push 0x110a
push edx
call ebp
mov ecx, dword [esp + 0x468]
mov edi, eax
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x5058f1
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x20], eax
jle 0x505a96
jmp 0x50590f
mov eax, dword [esp + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0xb4]
test edi, edi
mov ebx, dword [ecx + eax*4]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x28], eax
je 0x5059f0
mov ecx, dword [esi + 0x78]
lea eax, [esp + 0x30]
push eax
push 0
push 0x110c
push ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
mov byte [esp + 0x68], 0
call ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x505979
test cl, cl
je 0x505975
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x505979
add eax, 2
add ebp, 2
test cl, cl
jne 0x505954
xor eax, eax
jmp 0x50597e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x50599c
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push edi
lea ecx, [esi + 0x5c]
call fcn.005ba023
cmp dword [esp + 0x48], ebx
je 0x5059b7
push 0
push 0
push 0
push ebx
push ebx
push 0
push 0x22
push edi
lea ecx, [esi + 0x5c]
call fcn.005ba023
mov eax, dword [esp + 0x54]
test eax, eax
je 0x5059d6
push 0
push 0
push 0
push 0
push 0
push 0
push 4
push edi
lea ecx, [esi + 0x5c]
call fcn.005ba023
mov ecx, dword [esi + 0x78]
push edi
push 1
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [esp + 0x2c]
mov edi, eax
jmp 0x505a27
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push ebx
lea ebp, [esi + 0x5c]
push ebx
push eax
push 0x23
mov ecx, ebp
call fcn.005ba071
push 0
push 0
push 0
push 0
push 0
mov ebx, eax
push 0
push 4
push ebx
mov ecx, ebp
call fcn.005ba023
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x505a6b
mov eax, dword [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x505a58
test cl, cl
je 0x505a54
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x505a58
add eax, 2
add ebp, 2
test cl, cl
jne 0x505a33
xor eax, eax
jmp 0x505a5d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x505a6b
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
jmp 0x505a77
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x505a77
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x505905
mov ebx, dword [esp + 0x10]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test edi, edi
je 0x505ace
mov eax, dword [esi + 0x78]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 1
push 0x110a
push eax
mov ebp, edi
call ebx
mov ecx, dword [esi + 0x78]
push ebp
push 0
push 0x1101
push ecx
mov edi, eax
call ebx
test edi, edi
jne 0x505a9a
mov ebx, dword [esp + 0x10]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test ebx, ebx
je 0x505b08
mov eax, dword [esp + 0x24]
test eax, eax
je 0x505afa
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x505afa
mov edx, dword [esi + 0x78]
push ebx
push 1
push 0x110a
push edx
call ebp
test eax, eax
je 0x505afa
mov dword [esp + 0x10], eax
mov ebx, eax
mov eax, dword [esi + 0x78]
push ebx
push 9
push 0x110b
push eax
call ebp
mov ecx, dword [esp + 0x468]
mov eax, dword [esi + 0xb8]
cmp ecx, eax
jge 0x505b54
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 0xf
add esi, 0x5c
push 0xf
push 0x66f908
push 0x23
mov ecx, esi
call fcn.005ba071
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, esi
call fcn.005ba023
lea ecx, [esp + 0x1c]
mov dword [esp + 0x460], 0xffffffff
call fcn.005bc421
mov ecx, dword [esp + 0x458]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x454
ret 4