Function at 0x10070bd0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp]
push esi
mov esi, dword [esp + 0x44]
push edi
test eax, eax
jne 0x10070bf0
push 0x80004003
call fcn.100830f0
mov edx, dword [esp + 0x50]
mov edx, dword [edx]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc0]
call eax
movzx eax, word [esi + 0x40]
movzx ecx, ax
inc eax
mov word [esi + 0x40], ax
mov eax, dword [ebp]
test eax, eax
jne 0x10070c1f
push 0x80004003
call fcn.100830f0
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x28]
call eax
mov eax, dword [ebp]
test eax, eax
jne 0x10070c39
push 0x80004003
call fcn.100830f0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x7c]
push 5
push eax
call edx
mov eax, dword [ebp]
test eax, eax
jne 0x10070c54
push 0x80004003
call fcn.100830f0
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.DLL_CopyRect]
mov eax, dword [0x100c7a60]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10070cb7
push 0x100a6b44
call ebx
test eax, eax
jne 0x10070c98
mov eax, 0x12
jmp 0x10070cbb
push 0x100a9e44
push eax
call edi
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10070cb1
lea eax, [ecx + 0x12]
jmp 0x10070cc1
push 0x12
call ecx
jmp 0x10070cbb
push 0x12
call eax
mov ecx, dword [0x100c7a60]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x24]
add eax, edx
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x10070d03
push 0x100a6b44
call ebx
test eax, eax
jne 0x10070ce7
lea ecx, [eax + 0x12]
jmp 0x10070d09
push 0x100a9e44
push eax
call edi
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10070cfd
lea ecx, [eax + 0x12]
jmp 0x10070d09
push 0x12
call eax
jmp 0x10070d07
push 0x12
call ecx
mov ecx, eax
mov eax, esi
sub eax, ecx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, dword [esp + 0x24]
mov eax, 0x100a7ca8
lea edi, [esp + 0x1c]
call fcn.1003e030
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10070dfd
mov eax, dword [ebp]
test eax, eax
jne 0x10070d43
push 0x80004003
call fcn.100830f0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf4]
push esi
push eax
call edx
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10070d8a
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10070d6e
mov eax, 1
jmp 0x10070d8e
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10070d8a
mov eax, 1
jmp 0x10070d8e
push 1
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x34], ecx
push 1
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
push ecx
push esi
call edx
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0x100aa8a4
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x108]
push eax
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
push 0x1771
push esi
call ecx
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 5
push esi
call edx
mov eax, 0x100a7ca8
lea edi, [esp + 0x18]
call fcn.1003e030
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10070fc1
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10070e59
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10070e36
mov eax, 0x12
jmp 0x10070e5d
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10070e53
lea eax, [ecx + 0x12]
jmp 0x10070e63
push 0x12
call ecx
jmp 0x10070e5d
push 0x12
call eax
mov ecx, dword [0x100c7a60]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x24]
lea ebp, [eax + edx]
mov dword [esp + 0x10], ebp
test ecx, ecx
jne 0x10070eab
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10070e8e
lea edx, [eax + 0x12]
jmp 0x10070eb1
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10070eab
lea edx, [eax + 0x12]
jmp 0x10070eb7
push 0x12
call ecx
mov edx, eax
mov ecx, dword [0x100c7a60]
mov eax, esi
sub eax, edx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, dword [esp + 0x24]
test ecx, ecx
jne 0x10070efe
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10070ede
lea esi, [eax + 0x12]
jmp 0x10070f04
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10070ef8
lea esi, [eax + 0x12]
jmp 0x10070f0d
push 0x12
call eax
jmp 0x10070f02
push 0x12
call ecx
mov esi, eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10070f3f
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10070f23
mov eax, 0x12
jmp 0x10070f43
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10070f3f
mov eax, 0x12
jmp 0x10070f43
push 0x12
call eax
add eax, ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
add esi, ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], esi
test eax, eax
jne 0x10070f6b
push 0x80004003
call fcn.100830f0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf4]
push edi
push eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
push 1
lea ecx, [esp + 0x34]
push ecx
push edi
call edx
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0x100abb68
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x108]
push eax
push edi
call edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x28]
push 0x158a
push edi
call ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x5c]
push 0
push 0x10000000
push edi
call eax
mov eax, 0x100a7ca8
lea edi, [esp + 0x14]
call fcn.1003df80
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x10071160
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x1007101d
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10070ffa
mov eax, 0x1c
jmp 0x10071021
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10071017
lea eax, [ecx + 0x1c]
jmp 0x10071027
push 0x1c
call ecx
jmp 0x10071021
push 0x1c
call eax
mov ecx, dword [0x100c7a60]
add dword [esp + 0x10], eax
test ecx, ecx
jne 0x10071062
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10071045
mov eax, 0x3b
jmp 0x10071066
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10071062
lea eax, [ecx + 0x3b]
jmp 0x1007106c
push 0x3b
call ecx
mov ecx, dword [0x100c7a60]
mov esi, dword [esp + 0x28]
sub esi, eax
test ecx, ecx
jne 0x100710ae
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x1007108c
mov eax, 0x12
jmp 0x100710b2
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x100710a8
mov eax, 0x12
jmp 0x100710b2
push 0x12
call eax
jmp 0x100710b2
push 0x12
call ecx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x3c], eax
mov eax, dword [edx]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
test eax, eax
jne 0x100710dc
push 0x80004003
call fcn.100830f0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf4]
push ebp
push eax
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x44]
push 1
lea ecx, [esp + 0x34]
push ecx
push ebp
call edx
mov eax, dword [ebp]
mov ecx, dword [eax + 0x28]
push 0x3f0
push ebp
call ecx
mov eax, dword [esp + 0x50]
mov edx, dword [0x100bc66c]
mov ecx, dword [eax + 8]
push ecx
mov dword [esp + 0x14], edx
mov edx, dword [eax + 4]
push edx
push 0x100af910
lea ecx, [esp + 0x1c]
call fcn.10001df0
mov edi, dword [esp + 0x1c]
add esp, 8
mov ebx, esp
call fcn.10005c40
mov ecx, ebp
call fcn.10027460
lea eax, [edi - 0xc]
cmp eax, 0x100bc65c
je 0x10071160
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x10071160
push edi
call fcn.1008441c
add esp, 4
cmp dword [esp + 0x54], 0
je 0x1007132f
lea edi, [esp + 0x50]
call fcn.1003e1f0
mov ebp, dword [esp + 0x50]
test ebp, ebp
je 0x10071528
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0x100aa910
call eax
mov dword [esp + 0x48], eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x100711d9
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x100711b6
mov eax, 0x27
jmp 0x100711dd
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x100711d3
lea eax, [ecx + 0x27]
jmp 0x100711e3
push 0x27
call ecx
jmp 0x100711dd
push 0x27
call eax
mov ecx, dword [0x100c7a60]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x24]
sub ebx, eax
test ecx, ecx
jne 0x10071226
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10071209
lea edx, [eax + 0xf]
jmp 0x1007122c
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10071226
lea edx, [eax + 0xf]
jmp 0x10071232
push 0xf
call ecx
mov edx, eax
mov ecx, dword [0x100c7a60]
mov eax, esi
sub eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [esp + 0x24]
test ecx, ecx
jne 0x10071279
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10071259
lea edi, [eax + 0xf]
jmp 0x1007127f
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10071273
lea edi, [eax + 0xf]
jmp 0x10071288
push 0xf
call eax
jmp 0x1007127d
push 0xf
call ecx
mov edi, eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x100712ba
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x1007129e
mov eax, 0x13
jmp 0x100712be
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x100712ba
mov eax, 0x13
jmp 0x100712be
push 0x13
call eax
mov ecx, dword [esp + 0x4c]
add eax, ebx
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
add edi, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], edi
test eax, eax
jne 0x100712e6
push 0x80004003
call fcn.100830f0
mov edx, dword [eax]
push ebp
push eax
mov eax, dword [edx + 0xf4]
call eax
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x44]
push 1
lea edx, [esp + 0x34]
push edx
push ebp
call eax
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x28]
push 0x1587
push ebp
call edx
mov ecx, dword [esp + 0x48]
mov eax, dword [ebp]
mov edx, dword [eax + 0x104]
push ecx
push ebp
call edx
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
jmp 0x10071528
mov eax, 0x100a7ca8
lea edi, [esp + 0x54]
call fcn.1003df80
mov esi, dword [esp + 0x54]
test esi, esi
je 0x10071528
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
test eax, eax
jne 0x1007135d
push 0x80004003
call fcn.100830f0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf4]
push esi
push eax
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
push 0x1588
push esi
call ecx
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x100713b8
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10071395
mov eax, 0x6c
jmp 0x100713bc
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x100713b2
lea eax, [ecx + 0x6c]
jmp 0x100713c2
push 0x6c
call ecx
jmp 0x100713bc
push 0x6c
call eax
mov ecx, dword [0x100c7a60]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
sub edi, dword [esp + 0x24]
sub ebp, eax
test ecx, ecx
jne 0x10071405
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x100713e8
lea edx, [eax + 0x16]
jmp 0x1007140b
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10071405
lea edx, [eax + 0x16]
jmp 0x10071411
push 0x16
call ecx
mov edx, eax
mov ecx, dword [0x100c7a60]
mov eax, edi
sub eax, edx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esp + 0x24]
test ecx, ecx
jne 0x10071458
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10071438
lea ebx, [eax + 0x16]
jmp 0x1007145e
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10071452
lea ebx, [eax + 0x16]
jmp 0x10071467
push 0x16
call eax
jmp 0x1007145c
push 0x16
call ecx
mov ebx, eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10071499
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x1007147d
mov eax, 0x42
jmp 0x1007149d
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10071499
mov eax, 0x42
jmp 0x1007149d
push 0x42
call eax
add eax, ebp
mov dword [esp + 0x38], eax
push 1
add ebx, edi
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], ebx
mov edx, dword [esi]
mov ecx, dword [edx + 0x44]
push eax
push esi
call ecx
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x3c]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x124]
push eax
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x68]
push 0
push 0x201
push esi
call ecx
mov ebp, dword [esp + 0x50]
mov edi, dword [ebp + 0x14]
push ecx
mov ebx, esp
call fcn.10005c40
mov ecx, esi
call fcn.10027460
mov eax, dword [ebp]
mov edx, dword [esi]
mov ecx, dword [edx + 0xc0]
push eax
push esi
call ecx
push 0x7f89
push 0
call dword [sym.imp.USER32.DLL_LoadCursorW]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x110]
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10071538
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10071548
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10071558
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 0x10