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

Disassembly:
push 0xffffffffffffffff
push 0x4f8486
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0xc8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 2
mov eax, dword [eax + 4]
push 0xffffffffffffffff
push 0x100c
push eax
call esi
mov edi, eax
mov eax, dword [ebx + 0xc8]
xor ebp, ebp
mov dword [esp + 0x20], edi
mov ecx, dword [eax + 4]
push ebp
push ebp
push 0x1004
push ecx
call esi
cmp dword [esp + 0xcc], 0x102
jne 0x4ba38f
cmp edi, ebp
jle 0x4ba660
dec edi
jmp 0x4ba399
dec eax
cmp edi, eax
jge 0x4ba660
inc edi
mov dword [esp + 0x1c], edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xc8]
lea edx, [esp + 0x9c]
xor edi, edi
mov dword [esp + 0x9c], 0xb
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xb0], ebp
mov eax, dword [eax + 4]
push edx
push edi
push 0x105f
push eax
call esi
cmp eax, edi
je 0x4ba64f
jmp 0x4ba3ee
xor edi, edi
mov edx, dword [0x50d0e0]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc4], edi
mov dword [esp + 0x14], edx
mov ecx, dword [ebx + 0xc8]
mov dword [esp + 0x74], edi
mov dword [esp + 0x18], ecx
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov dword [esp + 0x7c], ebp
mov eax, dword [edx - 8]
test eax, eax
mov byte [esp + 0xc4], 1
je 0x4ba451
mov eax, dword [edx - 0xc]
test eax, eax
jl 0x4ba443
lea ecx, [esp + 0x10]
call fcn.00402350
jmp 0x4ba451
push 0x5209fc
lea ecx, [esp + 0x14]
call fcn.00406e00
mov esi, 0x100
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x90], esi
call fcn.004569b0
test eax, eax
mov dword [esp + 0x88], eax
je 0x4ba4b4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x74]
push edx
mov edx, dword [ecx + 4]
push eax
push 0x1073
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esi - 1]
cmp eax, ecx
jl 0x4ba4b4
add esi, esi
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x90], esi
call fcn.004569b0
test eax, eax
mov dword [esp + 0x88], eax
jne 0x4ba472
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00407e30
mov edx, dword [ebx + 0xc8]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], ebp
call fcn.00406cd0
mov esi, 0x100
lea ecx, [esp + 0x14]
push esi
mov dword [esp + 0x68], esi
call fcn.004569b0
test eax, eax
mov dword [esp + 0x60], eax
je 0x4ba542
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [edx + 4]
push ecx
push 0x1073
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esi - 1]
cmp eax, ecx
jl 0x4ba542
add esi, esi
lea ecx, [esp + 0x14]
push esi
mov dword [esp + 0x68], esi
call fcn.004569b0
test eax, eax
mov dword [esp + 0x60], eax
jne 0x4ba506
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00407e30
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0xc8]
push 0
push 0
push 0
push 0
push edx
push 1
push ebp
push eax
call fcn.0048b100
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x28]
mov edx, dword [ebx + 0xc8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 1
push ecx
push eax
push 0x104c
push edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call esi
mov eax, dword [esp + 0x14]
mov edx, dword [0x50d0e4]
inc ebp
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ba5f3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ba5f3
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x50d0e4]
mov dword [esp + 0xc4], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ba62d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ba62d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004de3a6
add esp, 4
mov eax, dword [ebx + 0xc8]
lea ecx, [esp + 0x9c]
push ecx
push ebp
mov edx, dword [eax + 4]
push 0x105f
push edx
call esi
test eax, eax
jne 0x4ba3ec
mov eax, dword [ebx + 0xc8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebx
call fcn.004b94b0
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret 4