Function at 0x10022bd0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 0xa0]
push esi
push edi
push 1
push 0x3f6
push ecx
xor ebx, ebx
mov ecx, esp
mov dword [ecx], eax
cmp eax, ebx
je 0x10022bfb
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
call fcn.10026f40
mov esi, dword [ebp + 0xa0]
add esp, 0xc
cmp esi, ebx
je 0x10022c6b
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi]
mov ecx, dword [edx + 0x108]
lea eax, [esp + 0x34]
push eax
push 1
push 0x3ec
push esi
mov dword [esp + 0x44], ebx
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov edi, dword [esp + 0x34]
push esi
call eax
push ecx
mov eax, esp
mov dword [esp + 0x38], ebx
mov dword [eax], edi
cmp edi, ebx
je 0x10022c51
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
lea esi, [esp + 0x38]
call fcn.1000a080
cmp eax, ebx
jge 0x10022c6f
cmp eax, 0x80004002
je 0x10022c6f
push eax
call fcn.100830f0
xor edi, edi
jmp 0x10022c3c
cmp edi, ebx
je 0x10022c7b
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov edi, dword [esp + 0x34]
cmp edi, ebx
je 0x100230f9
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.10026570
test eax, eax
je 0x10022d56
mov edx, dword [edi]
mov ecx, dword [edx + 0x40]
lea eax, [esp + 0x20]
push eax
push edi
call ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.DLL_CopyRect]
mov eax, dword [0x100c7a30]
cmp eax, ebx
jne 0x10022cfc
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
jne 0x10022ce0
mov esi, 3
jmp 0x10022d02
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a30], eax
cmp eax, ebx
jne 0x10022cfc
mov esi, 3
jmp 0x10022d0b
push 3
call eax
mov esi, eax
mov eax, dword [0x100c7a30]
cmp eax, ebx
jne 0x10022d37
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
jne 0x10022d1e
xor eax, eax
jmp 0x10022d3a
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a30], eax
cmp eax, ebx
jne 0x10022d37
xor eax, eax
jmp 0x10022d3a
push ebx
call eax
push esi
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.DLL_OffsetRect]
mov edx, dword [edi]
mov ecx, dword [edx + 0x44]
push 1
lea eax, [esp + 0x14]
push eax
push edi
call ecx
mov eax, dword [ebp + 0xd4]
cmp dword [eax - 0xc], ebx
jl 0x10022d73
mov ebx, eax
lea edx, [ebx - 0xc]
push edx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
jmp 0x10022d8b
mov ecx, dword [0x100bc66c]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
call fcn.100035a0
mov ebx, dword [esp + 0x34]
lea esi, [esp + 0x34]
call fcn.10028f40
test eax, eax
jne 0x10022db2
mov edx, dword [ebp + 0xd4]
push edx
push 0x100a97e8
mov ecx, esi
call fcn.10001df0
mov ebx, dword [esp + 0x3c]
add esp, 8
mov eax, dword [ebx - 8]
test eax, eax
jl 0x10022dd4
push 0x100a9860
push ebx
call fcn.10084cc2
add esp, 8
test eax, eax
je 0x10022dd4
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x10022df5
cmp dword [ebx - 8], 0
jl 0x10022e00
push 0x100a986c
push ebx
call fcn.10084cc2
add esp, 8
test eax, eax
je 0x10022e00
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x10022e00
push edi
lea edx, [ebp + 0x50]
mov ecx, ebp
call fcn.10028280
mov eax, dword [ebp + 0xa0]
mov esi, dword [ebp + 0xbc]
push 0x3ec
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x10022e22
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, esi
call fcn.100256d0
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
add esp, 8
lea ecx, [esp + 0x20]
push ecx
push edi
call edx
mov esi, dword [sym.imp.USER32.DLL_CopyRect]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
add ecx, 0x3e8
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea eax, [esp + 0x44]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x34], ecx
mov dword [eax], edi
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
call fcn.100261f0
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
add esp, 0x18
lea ecx, [esp + 0x20]
push ecx
push edi
call edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
call esi
mov edx, dword [ebp + 0x30]
lea esi, [ebp + 0x12c]
push esi
push edx
call dword [sym.imp.USER32.DLL_GetWindowRect]
mov ebx, dword [esp + 0x1c]
mov eax, dword [0x100c7a30]
sub ebx, dword [esp + 0x14]
test eax, eax
jne 0x10022f03
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10022ee0
mov eax, 0x32
jmp 0x10022f07
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a30], ecx
test ecx, ecx
jne 0x10022efd
lea eax, [ecx + 0x32]
jmp 0x10022f0d
push 0x32
call ecx
jmp 0x10022f07
push 0x32
call eax
mov ecx, dword [0x100c7a30]
cmp ebx, eax
jle 0x1002307f
test ecx, ecx
jne 0x10022f54
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10022f2f
mov eax, 0x1f4
jmp 0x10022f5b
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a30], eax
test eax, eax
jne 0x10022f4b
mov eax, 0x1f4
jmp 0x10022f5b
push 0x1f4
call eax
jmp 0x10022f5b
push 0x1f4
call ecx
mov ecx, dword [esi]
add ecx, eax
mov dword [ebp + 0x134], ecx
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp + 0x30]
push ecx
push eax
call dword [sym.imp.USER32.DLL_MoveWindow]
mov eax, dword [ebp + 0xa0]
mov esi, dword [ebp + 0xbc]
push 0x3ec
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x10022fa6
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, esi
call fcn.100256d0
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
add esp, 8
lea ecx, [esp + 0x20]
push ecx
push edi
call edx
mov esi, dword [sym.imp.USER32.DLL_CopyRect]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
add ecx, 0x3e8
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea eax, [esp + 0x44]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x34], ecx
mov dword [eax], edi
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
call fcn.100261f0
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
add esp, 0x18
lea ecx, [esp + 0x20]
push ecx
push edi
call edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
call esi
mov eax, dword [0x100c7a30]
test eax, eax
jne 0x10023073
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10023051
mov edx, dword [esp + 0x1c]
mov eax, 0x4d
add eax, edx
jmp 0x100230c5
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a30], eax
test eax, eax
jne 0x10023073
mov edx, dword [esp + 0x1c]
mov eax, 0x4d
add eax, edx
jmp 0x100230c5
push 0x4d
call eax
mov edx, dword [esp + 0x1c]
add eax, edx
jmp 0x100230c5
test ecx, ecx
jne 0x100230bb
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10023099
mov eax, 0x4d
jmp 0x100230bf
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a30], eax
test eax, eax
jne 0x100230b5
mov eax, 0x4d
jmp 0x100230bf
push 0x4d
call eax
jmp 0x100230bf
push 0x4d
call ecx
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov dword [ebp + 0x138], eax
mov eax, dword [esp + 0x34]
lea edx, [eax - 0xc]
cmp edx, 0x100bc65c
je 0x100230f1
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x100230f1
push esi
call fcn.1008441c
add esp, 4
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4