Function at 0x10044240
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x8c0
mov eax, dword [0x100bb300]
xor eax, esp
mov dword [esp + 0x8bc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8cc]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x6c], ebp
cmp dword [ebp + 0x88], ebx
jne 0x1004428b
mov esi, dword [esp + 0x8dc]
cmp esi, ebx
je 0x10044d23
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jmp 0x10044d04
cmp dword [esp + 0x8d8], ebx
je 0x10044cef
mov eax, dword [0x100c7a60]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
jne 0x100442dd
push 0x100a6b44
call edi
cmp eax, ebx
jne 0x100442c2
mov dword [esp + 0x10], 0x22
jmp 0x100442e5
push 0x100a9e44
push eax
call esi
mov dword [0x100c7a60], eax
cmp eax, ebx
jne 0x100442dd
mov dword [esp + 0x10], 0x22
jmp 0x100442ee
push 0x22
call eax
mov dword [esp + 0x10], eax
mov eax, dword [0x100c7a60]
cmp eax, ebx
jne 0x1004431e
push 0x100a6b44
call edi
cmp eax, ebx
jne 0x10044303
mov dword [esp + 0x18], 0x1c
jmp 0x10044326
push 0x100a9e44
push eax
call esi
mov dword [0x100c7a60], eax
cmp eax, ebx
jne 0x1004431e
mov dword [esp + 0x18], 0x1c
jmp 0x1004432f
push 0x1c
call eax
mov dword [esp + 0x18], eax
mov eax, dword [0x100c7a60]
cmp eax, ebx
jne 0x1004435f
push 0x100a6b44
call edi
cmp eax, ebx
jne 0x10044344
mov dword [esp + 0x1c], 0x1c
jmp 0x10044367
push 0x100a9e44
push eax
call esi
mov dword [0x100c7a60], eax
cmp eax, ebx
jne 0x1004435f
mov dword [esp + 0x1c], 0x1c
jmp 0x10044367
push 0x1c
call eax
mov dword [esp + 0x1c], eax
push 0x206
lea ecx, [esp + 0x6c6]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x6cc], ax
call fcn.10087b80
mov ecx, 7
mov esi, 0x100ac888
lea edi, [esp + 0x4c4]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
push 0x1ea
lea edx, [esp + 0x4da]
push ebx
push edx
movsw word es:[edi], word [esi]
call fcn.10087b80
add esp, 0xc
push 0x206
lea ecx, [esp + 0x2b6]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x2bc], ax
call fcn.10087b80
add esp, 0xc
push 0x206
lea eax, [esp + 0xae]
xor edx, edx
push ebx
push eax
mov word [esp + 0xb4], dx
call fcn.10087b80
mov eax, dword [esp + 0x8e4]
add esp, 0xc
push 0x104
lea edx, [esp + 0xac]
mov dword [esp + 0x6c], 0xa
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x7c], 0x999999
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x8d8]
mov ecx, dword [eax]
push 0x104
lea edx, [esp + 0x6c4]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov eax, dword [esp + 0x8d8]
mov ecx, dword [eax]
lea edx, [esp + 0x78]
push edx
lea edx, [esp + 0x88]
push edx
lea edx, [esp + 0x84]
push edx
lea edx, [esp + 0x80]
push edx
lea edx, [esp + 0x78]
push edx
push 0x104
lea edx, [esp + 0x4d0]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x8d8]
mov ecx, dword [eax]
push 0x104
lea edx, [esp + 0x2b4]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [ebp + 0x88]
cmp eax, ebx
jne 0x100444ba
push 0x80004003
call fcn.100830f0
mov ecx, dword [eax]
lea edx, [esp + 0x98]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov esi, dword [sym.imp.USER32.DLL_CopyRect]
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x2c]
push edx
call esi
mov eax, dword [ebp + 0x90]
cmp eax, ebx
je 0x10044567
mov ecx, dword [eax]
mov edx, dword [ecx + 0x64]
push 0x10000000
push eax
call edx
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
cmp eax, ebx
je 0x10044567
mov eax, dword [ebp + 0x90]
cmp eax, ebx
jne 0x10044517
push 0x80004003
call fcn.100830f0
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [esp + 0x98]
push ecx
push eax
call edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x8c]
push ecx
call esi
mov eax, dword [ebp + 0x88]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x30], edx
cmp eax, ebx
jne 0x10044558
push 0x80004003
call fcn.100830f0
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
lea eax, [esp + 0xa8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10044571
sub eax, edx
sar eax, 1
je 0x100445d3
cmp dword [ebp + 0x188], ebx
je 0x100445d3
cmp dword [ebp + 0x190], ebx
jne 0x100445d3
lea esi, [esp + 0xa8]
call fcn.100014f0
mov esi, eax
cmp esi, ebx
je 0x100445d3
call fcn.1000b330
cmp eax, dword [esp + 0x10]
jbe 0x100445c9
mov edi, dword [esp + 0x34]
sub edi, dword [esp + 0x2c]
call fcn.1000b330
cmp eax, edi
ja 0x100445c9
call fcn.1000b330
mov dword [esp + 0x10], eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, 0x100a7ca8
lea edi, [esp + 0x24]
call fcn.1003ded0
mov eax, dword [ebp + 0x88]
cmp eax, ebx
jne 0x100445f5
push 0x80004003
call fcn.100830f0
mov ebp, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf4]
push ebp
push eax
call edx
cmp ebp, ebx
jne 0x10044613
push 0x80004003
call fcn.100830f0
mov ecx, dword [esp + 0x8d8]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc0]
push ecx
push ebp
call edx
push ecx
mov eax, esp
mov dword [eax], ebp
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
mov dword [esp + 0x2c], ebx
call ecx
lea esi, [esp + 0x28]
call fcn.1003f660
cmp eax, ebx
jge 0x10044653
cmp eax, 0x80004002
je 0x10044653
push eax
call fcn.100830f0
mov esi, dword [esp + 0x24]
cmp esi, ebx
jne 0x10044665
push 0x80004003
call fcn.100830f0
push 0x7f89
push ebx
call dword [sym.imp.USER32.DLL_LoadCursorW]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x10]
push 0x7f4
push esi
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
add ecx, edx
mov dword [esp + 0x34], ecx
mov eax, dword [ebp]
mov edx, dword [eax + 0x44]
push 1
lea ecx, [esp + 0x2c]
push ecx
push ebp
call edx
mov eax, dword [ebp]
mov ecx, dword [eax + 0x5c]
push ebx
push 0x20
push ebp
call ecx
mov edx, dword [ebp]
mov eax, dword [edx + 0x28]
push 0x76ca
push ebp
call eax
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x14]
push ecx
push edx
mov eax, ebp
mov dword [esp + 0x1c], ebx
call fcn.10027c70
lea eax, [esp + 0xa8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100446d6
sub eax, edx
sar eax, 1
je 0x10044759
mov eax, 0x100a7ca8
lea edi, [esp + 0x14]
call fcn.1003e030
mov esi, dword [esp + 0x14]
mov eax, dword [ebp]
mov ecx, dword [eax + 0xf4]
push esi
push ebp
call ecx
cmp esi, ebx
jne 0x10044714
push 0x80004003
call fcn.100830f0
mov edx, dword [esi]
mov ecx, dword [edx + 0x44]
push 1
lea eax, [esp + 0x2c]
push eax
push esi
call ecx
push ecx
lea edi, [esp + 0xac]
mov ebx, esp
call fcn.10005c40
mov ecx, esi
call fcn.10027460
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
push 0
push 2
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x7c]
push 0xf
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
xor ebx, ebx
mov edx, dword [ebp]
mov eax, dword [edx + 0x68]
push ebx
push 0xff00
push ebp
call eax
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x7c]
push 0xf
push ebp
call edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x54], eax
xor esi, esi
lea eax, [esp + 0x2b0]
mov dword [esp + 0x50], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x4c], ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100447a3
sub eax, edx
sar eax, 1
je 0x10044865
mov eax, 0x100a7ca8
lea edi, [esp + 0x80]
call fcn.1003e030
mov eax, dword [eax]
cmp eax, ebx
je 0x100447dd
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
mov esi, eax
mov dword [esp + 0x18], eax
call edx
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x100447f0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp]
mov ecx, dword [eax + 0xf4]
push esi
push ebp
call ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x50], edx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x4c]
sar edx, 1
add eax, edx
mov dword [esp + 0x4c], eax
add eax, ecx
mov dword [esp + 0x54], eax
cmp esi, ebx
jne 0x1004483a
push 0x80004003
call fcn.100830f0
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
push 1
lea ecx, [esp + 0x4c]
push ecx
push esi
call edx
push ecx
lea edi, [esp + 0x2b4]
mov ebx, esp
call fcn.10005c40
mov ecx, esi
call fcn.10027460
xor ebx, ebx
mov ecx, dword [esp + 0x8dc]
mov edx, dword [esp + 0x8d8]
mov eax, dword [0x100bc66c]
push ecx
push edx
push 0x100ac8a8
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
call fcn.10001df0
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x74]
add esp, 0xc
push eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x4c4]
push eax
push ecx
lea esi, [esp + 0x84]
call fcn.1003f330
mov eax, dword [esp + 0x84]
add esp, 0x14
cmp eax, ebx
jne 0x100448d5
push 0x80004003
call fcn.100830f0
lea ebx, [esp + 0x20]
call fcn.10009f90
mov eax, dword [eax]
test eax, eax
je 0x100448e8
mov eax, dword [eax]
jmp 0x100448ea
xor eax, eax
lea edi, [esp + 0x1c]
call fcn.1003df80
lea edi, [esp + 0x20]
call fcn.10005c90
mov esi, dword [esp + 0x1c]
mov edx, dword [ebp]
mov eax, dword [edx + 0xf4]
push esi
push ebp
call eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x34]
mov eax, ecx
sub eax, edx
add eax, dword [esp + 0x10]
mov dword [esp + 0x44], edx
mov edi, edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
sub edi, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x3c], eax
add eax, edi
mov dword [esp + 0x44], eax
test esi, esi
jne 0x10044958
push 0x80004003
call fcn.100830f0
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
push 1
lea ecx, [esp + 0x3c]
push ecx
push esi
call edx
push ecx
lea edi, [esp + 0x6c4]
mov ebx, esp
call fcn.10005c40
mov ecx, esi
call fcn.10027460
mov eax, dword [esi]
mov ecx, dword [eax + 0xf0]
push 1
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
push 0
push 0x200
push esi
call eax
mov ecx, dword [esi]
mov eax, dword [ecx + 0x40]
lea edx, [esp + 0x88]
push edx
push esi
call eax
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.DLL_CopyRect]
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10044a02
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x100449e1
mov ecx, 0x398
jmp 0x10044a11
push 0x100a9e44
push eax
call ebx
mov dword [0x100c7a60], eax
test eax, eax
jne 0x100449f9
mov ecx, 0x398
jmp 0x10044a11
push 0x398
call eax
jmp 0x10044a0f
push 0x398
call eax
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x40]
mov edi, dword [sym.imp.USER32.DLL_OffsetRect]
sub eax, dword [esp + 0x50]
add eax, ecx
add eax, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
cmp dword [esp + 0x14], 0
je 0x10044a6a
push 0
push eax
lea eax, [esp + 0x50]
push eax
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov esi, 5
call fcn.1003f150
add eax, dword [esp + 0x50]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, dword [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x40]
push ecx
call edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov eax, ecx
sub eax, edx
add eax, dword [esp + 0x10]
mov edi, edx
cdq
sub eax, edx
sub edi, ecx
sar eax, 1
add ecx, eax
add edi, ecx
push 1
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], edi
mov edx, dword [esi]
mov ecx, dword [edx + 0x44]
push eax
push esi
call ecx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x34]
lea edi, [esp + 0x20]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
call fcn.1003e1f0
mov edi, dword [esp + 0x20]
mov eax, dword [ebp]
mov ecx, dword [eax + 0xf4]
push edi
push ebp
call ecx
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10044b20
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10044b01
mov eax, 5
jmp 0x10044b24
push 0x100a9e44
push eax
call ebx
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10044b1a
lea eax, [ecx + 5]
jmp 0x10044b2a
push 5
call ecx
jmp 0x10044b24
push 5
call eax
mov ecx, dword [0x100c7a60]
sub dword [esp + 0x60], eax
test ecx, ecx
jne 0x10044b61
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10044b48
mov eax, 0x17
jmp 0x10044b65
push 0x100a9e44
push eax
call ebx
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10044b61
lea eax, [ecx + 0x17]
jmp 0x10044b6b
push 0x17
call ecx
mov ecx, dword [0x100c7a60]
mov edx, dword [esp + 0x60]
sub edx, eax
mov dword [esp + 0x58], edx
test ecx, ecx
jne 0x10044ba6
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10044b8d
lea edx, [eax + 0x18]
jmp 0x10044bac
push 0x100a9e44
push eax
call ebx
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10044ba6
lea edx, [eax + 0x18]
jmp 0x10044bb2
push 0x18
call ecx
mov edx, eax
mov ecx, dword [0x100c7a60]
mov eax, dword [esp + 0x10]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x5c], eax
test ecx, ecx
jne 0x10044bf9
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10044bdb
mov eax, 0x17
jmp 0x10044bfd
push 0x100a9e44
push eax
call ebx
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10044bf3
mov eax, 0x17
jmp 0x10044bfd
push 0x17
call eax
jmp 0x10044bfd
push 0x17
call ecx
mov ecx, dword [esp + 0x5c]
add eax, ecx
mov dword [esp + 0x64], eax
test edi, edi
jne 0x10044c15
push 0x80004003
call fcn.100830f0
mov edx, dword [edi]
mov ecx, dword [edx + 0x44]
push 1
lea eax, [esp + 0x5c]
push eax
push edi
call ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
push 0
push 1
push edi
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x28]
push 0x76d4
push edi
call edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x7c]
push 4
push edi
call ecx
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx + 0xc4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0x100ac8d4
call edx
push ecx
mov ebx, eax
mov eax, esp
mov dword [eax], edi
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov edx, ebx
call fcn.1003f5a0
mov edx, dword [ebp]
mov eax, dword [edx + 0x110]
add esp, 4
push ebp
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x10044ca2
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x100bc65c
je 0x10044cc8
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x10044cc8
push esi
call fcn.1008441c
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10044cd8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
xor ebx, ebx
mov esi, dword [esp + 0x8dc]
cmp esi, ebx
je 0x10044d23
lea edx, [esi + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x10044d23
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
or edx, 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
jne 0x10044d23
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x8cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10083dbb
add esp, 0x8c0
ret 0xc