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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5bb70c3c]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
lea eax, [esi + 0x38]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x134], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x130]
rep stosd dword es:[edi], eax
mov cl, byte [ebp + 8]
test cl, 0x40
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
je 0x5ba71169
mov eax, dword [esi + 0x28]
test al, 2
je 0x5ba7111c
test cl, 2
jne 0x5ba7111c
and eax, 0xfffffffd
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
test al, 1
je 0x5ba7112e
test cl, 1
jne 0x5ba7112e
and eax, 0xfffffffe
mov dword [esi + 0x28], eax
test byte [esi + 0x28], 3
jne 0x5ba71148
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [esi + 0x7c], ebx
jne 0x5ba714dc
test byte [ebp + 8], 0x10
je 0x5ba714dc
mov eax, dword [ebp + 8]
and eax, 0xffffffaf
mov dword [esi + 0x7c], eax
jmp 0x5ba714dc
mov eax, dword [esi + 0x18]
test cl, 0x20
mov ecx, dword [eax]
je 0x5ba7118b
push 5
push eax
call dword [ecx + 0x3c]
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
and dword [esi + 0x1c], 0xfffffffd
jmp 0x5ba714dc
push eax
call dword [ecx + 0x4c]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x50]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
test al, 1
mov dword [esi + 0x28], eax
jne 0x5ba711c3
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x5ba711d4
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5ba711d4
and dword [esi + 0x28], 0xfffffffc
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x5ba711ff
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x130]
push eax
mov ecx, esi
call fcn.5bb0e9e2
cmp eax, ebx
mov dword [ebp - 0x114], eax
jl 0x5ba714e7
jmp 0x5ba712ca
mov ecx, dword [esi + 0x28]
xor edi, edi
test ecx, 0x800000
je 0x5ba7120f
push 8
pop edi
test ecx, 0x100000
mov al, byte [0x5bb7381c]
je 0x5ba71223
test al, 4
jne 0x5ba71223
or edi, 1
test ecx, 0x400000
je 0x5ba71232
test al, 1
jne 0x5ba71232
or edi, 0x20
test ecx, 0x200000
je 0x5ba71241
test al, 1
jne 0x5ba71241
or edi, 2
test ch, 2
je 0x5ba7124d
test al, 1
jne 0x5ba7124d
or edi, 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x110]
push edx
push edi
push eax
call dword [ecx + 0x14]
cmp eax, ebx
mov dword [ebp - 0x114], eax
jl 0x5ba714e7
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
jmp 0x5ba712b3
push edi
push dword [ebp - 0x10c]
lea eax, [ebp - 0x130]
push eax
mov ecx, esi
call fcn.5ba9c448
cmp eax, ebx
mov dword [ebp - 0x114], eax
jl 0x5ba714e7
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
je 0x5ba712b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10c], ebx
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
lea edx, [ebp - 0x10c]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jge 0x5ba7127a
cmp dword [ebp - 0x130], ebx
je 0x5ba714dc
mov eax, dword [ebp - 0x120]
cmp eax, ebx
je 0x5ba712f0
push dword [ebp - 0x118]
dec eax
push eax
push ebx
mov ecx, esi
call fcn.5bb0e1a1
mov eax, dword [ebp - 0x128]
cmp eax, ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x90], ebx
jbe 0x5ba71398
mov edi, dword [ebp - 0x11c]
add edi, 0x10c
mov dword [ebp - 0x108], eax
test byte [edi - 4], 0x2e
je 0x5ba7133e
lea eax, [edi - 0x10c]
push eax
mov ecx, esi
call fcn.5ba9c640
cmp dword [edi], ebx
je 0x5ba7133e
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
add edi, 0x110
dec dword [ebp - 0x108]
jne 0x5ba7131c
mov eax, dword [ebp - 0x128]
cmp eax, ebx
jbe 0x5ba71398
mov edi, dword [ebp - 0x11c]
add edi, 0x10c
mov dword [ebp - 0x108], eax
test byte [edi - 4], 1
je 0x5ba7138a
lea eax, [edi - 0x10c]
push eax
mov ecx, esi
call fcn.5ba9c640
cmp dword [edi], ebx
je 0x5ba7138a
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
add edi, 0x110
dec dword [ebp - 0x108]
jne 0x5ba71368
xor edi, edi
cmp dword [ebp - 0x120], ebx
jbe 0x5ba7146d
mov eax, dword [ebp - 0x118]
mov ecx, edi
imul ecx, ecx, 0x110
mov ecx, dword [ecx + eax + 0x100]
imul ecx, ecx, 0x110
push 0x100
add ecx, eax
push ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x2e
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x130]
push eax
mov ecx, esi
call fcn.5bb0e91f
push 1
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x130]
push eax
mov ecx, esi
call fcn.5bb0e91f
inc edi
cmp edi, dword [ebp - 0x120]
jae 0x5ba7146d
mov ecx, dword [ebp - 0x118]
mov eax, edi
imul eax, eax, 0x110
lea eax, [eax + ecx + 0x100]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
mov eax, dword [eax]
imul eax, eax, 0x110
add eax, dword [ebp - 0x118]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x5ba71461
add dword [ebp - 0x108], 0x110
inc edi
cmp edi, dword [ebp - 0x120]
jb 0x5ba71428
cmp edi, dword [ebp - 0x120]
jb 0x5ba713a6
or dword [esi + 0x78], 0xffffffff
test byte [esi + 0x29], 8
je 0x5ba71489
cmp dword [esi + 0x30], ebx
je 0x5ba71489
cmp dword [esi + 0x94], ebx
jne 0x5ba71489
xor eax, eax
inc eax
jmp 0x5ba7148b
xor eax, eax
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0x18]
mov edi, dword [eax]
push 0x21
call fcn.5ba5c700
push eax
push dword [esi + 0x80]
push dword [esi + 0x18]
call dword [edi + 0x5c]
push 1
push 0x3ea
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
lea eax, [esi + 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x28]
push ebx
push ebx
push 0xaa8
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [esi + 0x50], ebx
jne 0x5ba714fe
test byte [ebp + 8], 0x20
jne 0x5ba714fe
and dword [esi + 0x1c], 0xfffffffd
push ebx
push ebx
push 0xaa8
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esi + 0x28], ebx
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0x5ba71514
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x110], ebx
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
je 0x5ba7152a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10c], ebx
mov ecx, dword [esi + 0x30]
cmp ecx, ebx
je 0x5ba71540
mov eax, dword [0x5bb73714]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov dword [esi + 0x30], ebx
cmp dword [ebp - 0x11c], ebx
je 0x5ba71559
mov eax, dword [0x5bb73714]
push dword [ebp - 0x11c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x118], ebx
pop edi
pop esi
pop ebx
je 0x5ba71575
mov eax, dword [0x5bb73714]
push dword [ebp - 0x118]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
call fcn.5bb3f314
leave
ret 4