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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
push ebx
push esi
mov esi, eax
mov ebx, dword [esi + 0x148]
push edi
push dword [esi + 0x144]
mov dword [esp + 0x28], ebx
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
jne 0x5b6f2565
push 0x14
jmp 0x5b6f2b69
xor edi, edi
cmp ebx, edi
je 0x5b6f2589
or dword [esi + 0x148], 0xffffffff
mov dword [esi + 0x14c], edi
mov dword [esi + 0x150], edi
cmp ebx, 0xffffffff
je 0x5b6f2589
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
push 8
pop ebx
cmp dword [0x5b7255b8], edi
je 0x5b6f25ea
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 1
jne 0x5b6f25a6
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 4]
push eax
call dword [0x5b7255b8]
test eax, eax
jns 0x5b6f25c1
push 3
jmp 0x5b6f2b69
cmp dword [0x5b7254cc], edi
jne 0x5b6f25cf
mov dword [0x5b7254cc], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 2
push dword [esi + 0x144]
push eax
call dword [ecx + 0x18]
test eax, eax
jns 0x5b6f264a
or esi, 0xffffffff
jmp 0x5b6f2639
push 0x5b7203f0
push 0x5b7203b0
call fcn.5b6f1500
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x5b6f261a
push 0x5b7203e0
push 0x5b7203a0
call fcn.5b6f1500
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x5b6f2628
jmp 0x5b6f25ba
cmp dword [0x5b7254cc], edi
jne 0x5b6f2628
mov dword [0x5b7254cc], ebx
mov ecx, dword [eax]
lea edx, [esi + 4]
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
jns 0x5b6f25cf
push 3
pop esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x5b6f2b6a
mov eax, dword [esp + 0x14]
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x12c]
cmp eax, edi
je 0x5b6f2664
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ebx, [esi + 0x140]
mov eax, dword [ebx]
mov dword [esi + 0x12c], edi
cmp eax, edi
je 0x5b6f267c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebx], edi
mov edi, dword [esi + 0x18]
push 0
push ebx
call fcn.5b6f1f67
mov dword [esi + 0x12c], eax
test eax, eax
je 0x5b6f269d
mov dword [0x5b7254cc], 9
xor eax, eax
push 9
pop ecx
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
inc eax
test byte [esi + 0x64], 2
mov word [esp + 0x4c], ax
push 0x10
pop eax
mov word [esp + 0x5a], ax
mov eax, dword [esi + 0x70]
mov dword [esp + 0x50], eax
push 0
pop eax
sete al
inc eax
mov word [esp + 0x4e], ax
lea eax, [esp + 0x4c]
call fcn.5b6f129d
cmp dword [ebx], 0
jne 0x5b6f2761
mov eax, dword [esi + 0x148]
xor ebx, ebx
push ebx
lea edi, [esi + 0x14c]
push edi
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x14
mov dword [esp + 0x38], 0x81
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x5b6f273c
cmp eax, 0x8878001e
jne 0x5b6f2730
mov eax, dword [esi + 0x148]
and dword [esp + 0x2c], 0xffffff7f
mov ecx, dword [eax]
push ebx
push edi
lea edx, [esp + 0x30]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x5b6f273c
or eax, 0xffffffff
jmp 0x5b6f2b6a
cmp dword [0x5b725488], ebx
jge 0x5b6f2761
mov edi, dword [edi]
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x4c]
push ecx
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
push edi
call dword [eax + 0x38]
test eax, eax
js 0x5b6f2b67
cmp dword [esp + 0x24], 0
jne 0x5b6f29fd
push 9
pop edi
cmp dword [0x5b7254cc], edi
jge 0x5b6f2866
push 5
pop ebx
lea eax, [esp + 0x4c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
xor edx, edx
mov ecx, ebx
div ecx
push 0
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x24
mov dword [esp + 0x38], 0x220
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x148]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x5b6f27d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
mov dword [0x5b7254cc], edi
call dword [ecx + 8]
cmp dword [0x5b7254cc], 0
jne 0x5b6f2866
mov eax, dword [esi + 0x148]
xor edi, edi
push edi
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x38], 0x40000
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x5b6f280e
mov dword [0x5b7254cc], 7
jmp 0x5b6f285c
mov eax, dword [esi + 0x148]
push edi
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x14
mov dword [esp + 0x38], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x5b6f2866
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x5b720410
push eax
call dword [ecx]
test eax, eax
js 0x5b6f285c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
mov dword [0x5b7254cc], ebx
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x12c]
push 2
xor ebx, ebx
pop edi
mov dword [esi + 0x74], edi
cmp eax, ebx
je 0x5b6f28a1
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x5b6f28f8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov dword [esi + 0x70], ecx
movzx ecx, word [eax + 2]
push eax
mov dword [esi + 0x74], ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x5b6f28f8
push 0x5c
lea eax, [esp + 0x90]
push ebx
push eax
mov dword [esp + 0x94], 0x60
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x148]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [esp + 0x88]
push edx
push eax
call dword [ecx + 0x10]
mov ecx, dword [esp + 0x94]
cmp ecx, ebx
je 0x5b6f28f8
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x90]
cmp eax, edx
jae 0x5b6f28f1
mov dword [esi + 0x70], edx
jmp 0x5b6f28f8
cmp eax, ecx
jbe 0x5b6f28f8
mov dword [esi + 0x70], ecx
cmp dword [esi + 0x12c], ebx
jne 0x5b6f294b
test dword [esi + 0x64], 0x8000
jne 0x5b6f294b
mov eax, dword [esi + 0x148]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x5b6f294b
mov al, byte [esp + 0x10]
cmp al, 3
je 0x5b6f2944
cmp al, 4
jbe 0x5b6f294b
cmp al, 6
jbe 0x5b6f293b
cmp al, 8
ja 0x5b6f294b
mov dword [esi + 0x74], 8
jmp 0x5b6f294b
mov dword [esi + 0x74], 6
jmp 0x5b6f294b
mov dword [esi + 0x74], 4
test byte [esi + 0x64], 8
jne 0x5b6f295e
cmp dword [0x5b725488], ebx
jl 0x5b6f295e
push 4
pop eax
jmp 0x5b6f2960
mov eax, edi
mov edi, dword [esi + 0x70]
mov dword [esi + 0x158], eax
mov eax, dword [esi + 0x68]
imul eax, edi
cdq
mov ecx, 0x3e8
mov ebx, ecx
idiv ebx
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x5b6f29b5
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x24]
fild qword [esp + 0x18]
mov edi, dword [esi + 0x70]
mov dword [esp + 0x10], edi
fmul qword [0x5b722f60]
fimul dword [esp + 0x10]
fadd qword [0x5b722d98]
call fcn.5b71eed0
jmp 0x5b6f29c6
mov eax, dword [esi + 0x6c]
test eax, eax
jns 0x5b6f29c0
neg eax
jmp 0x5b6f29c6
imul eax, edi
cdq
idiv ecx
mov dword [esi + 0x7c], eax
mov ecx, eax
imul eax, eax, 0x13
xor edx, edx
push 0x14
pop ebx
div ebx
xor edx, edx
add eax, dword [esi + 0x78]
div ecx
cmp eax, 2
jae 0x5b6f29e4
push 2
pop eax
imul ecx, eax
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
mov dword [esi + 0x78], ecx
mov dword [esi + 0x154], eax
test dword [esi + 0x64], 0x80000
lea eax, [esp + 0x4c]
mov dword [esp + 0x28], 0x24
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0x18000
je 0x5b6f2a26
mov dword [esp + 0x2c], 0x18008
lea ebx, [esi + 0x150]
mov edi, dword [esi + 0x74]
mov ecx, dword [esi + 0x158]
push edi
push dword [esi + 0x70]
lea eax, [esp + 0x54]
call fcn.5b6f126d
cmp edi, 2
jbe 0x5b6f2a5a
call fcn.5b6f12d2
test dword [esi + 0x64], 0x1000
je 0x5b6f2a5a
and dword [esp + 0x60], 0
movzx eax, word [esp + 0x58]
imul eax, dword [esi + 0x154]
push 0
push ebx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x148]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x5b6f2ab4
cmp dword [esp + 0x24], 0
jne 0x5b6f2b67
mov eax, dword [esi + 0x158]
push 2
pop ecx
cmp eax, ecx
jbe 0x5b6f2aa3
dec eax
mov dword [esi + 0x158], eax
jmp 0x5b6f2a2c
cmp dword [esi + 0x74], ecx
jbe 0x5b6f2b67
mov dword [esi + 0x74], ecx
jmp 0x5b6f2a2c
push 0x5c
lea eax, [esp + 0xf0]
push 0
push eax
mov dword [esp + 0xf4], 0x60
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x148]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [esp + 0xe8]
push edx
push eax
call dword [ecx + 0x10]
movzx eax, word [esp + 0xec]
mov dword [esi + 0x15c], eax
mov dword [esp + 0x74], 0x14
xor eax, eax
lea edi, [esp + 0x78]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [esp + 0x74]
push edx
push eax
call dword [ecx + 0xc]
test byte [esp + 0x78], 4
je 0x5b6f2b25
or dword [esi + 0x15c], 0x80000000
xor edx, edx
cmp dword [esp + 0x24], edx
je 0x5b6f2b63
mov edi, dword [esi + 0x108]
add dword [esi + 0x88], edi
mov edi, dword [esi + 0x10c]
mov dword [esi + 0x108], edx
adc dword [esi + 0x8c], edi
inc dword [esi + 0x80]
mov dword [esi + 0x10c], edx
mov dword [esi + 0x110], edx
mov dword [esi + 0x114], edx
xor eax, eax
jmp 0x5b6f2b6a
push 6
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret