Function at 0x10053eb0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
push edi
test eax, eax
jne 0x10053ecf
push 0x80004003
call fcn.100830f0
mov edx, dword [ebp]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc0]
call eax
mov eax, dword [esi]
test eax, eax
jne 0x10053eee
push 0x80004003
call fcn.100830f0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x7c]
push 5
push eax
call edx
mov eax, dword [esi]
test eax, eax
jne 0x10053f08
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 ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov eax, ecx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp + 8]
sar ebx, 1
cmp dword [eax - 8], 0
mov dword [esp + 0x14], ebx
jne 0x10053f49
mov ebx, ecx
mov dword [esp + 0x14], ecx
mov eax, dword [0x100c7a60]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10053f7a
push 0x100a6b44
call edi
test eax, eax
je 0x10053f7e
push 0x100a9e44
push eax
call esi
mov dword [0x100c7a60], eax
test eax, eax
je 0x10053f87
push 0
call eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10053fb8
push 0x100a6b44
call edi
test eax, eax
jne 0x10053f99
mov eax, 0xa
jmp 0x10053fbc
push 0x100a9e44
push eax
call esi
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10053fb2
lea eax, [ecx + 0xa]
jmp 0x10053fc2
push 0xa
call ecx
jmp 0x10053fbc
push 0xa
call eax
mov ecx, dword [0x100c7a60]
mov edx, dword [esp + 0x28]
sub edx, eax
mov dword [esp + 0x10], edx
test ecx, ecx
jne 0x10053ff9
push 0x100a6b44
call edi
test eax, eax
jne 0x10053fe0
lea edx, [eax + 0xf]
jmp 0x10053fff
push 0x100a9e44
push eax
call esi
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x10053ff9
lea edx, [eax + 0xf]
jmp 0x10054005
push 0xf
call ecx
mov edx, eax
mov ecx, dword [0x100c7a60]
mov eax, ebx
sub eax, edx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
test ecx, ecx
jne 0x1005403e
push 0x100a6b44
call edi
test eax, eax
je 0x10054042
push 0x100a9e44
push eax
call esi
mov dword [0x100c7a60], eax
test eax, eax
je 0x10054042
push 0x4b
call eax
jmp 0x10054042
push 0x4b
call ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 8], 0
je 0x10054285
mov eax, 0x100a7ca8
lea edi, [esp + 0x18]
call fcn.1003df80
mov esi, dword [esp + 0x18]
test esi, esi
je 0x10054285
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x100540ab
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10054088
mov eax, 0x41
jmp 0x100540af
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x100540a5
lea eax, [ecx + 0x41]
jmp 0x100540b5
push 0x41
call ecx
jmp 0x100540af
push 0x41
call eax
mov ecx, dword [0x100c7a60]
mov ebp, dword [esp + 0x28]
sub ebp, eax
test ecx, ecx
jne 0x100540f3
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x100540d3
lea edi, [eax + 0xf]
jmp 0x100540f9
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x100540ed
lea edi, [eax + 0xf]
jmp 0x10054102
push 0xf
call eax
jmp 0x100540f7
push 0xf
call ecx
mov edi, eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10054134
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10054118
mov eax, 0x37
jmp 0x10054138
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10054134
mov eax, 0x37
jmp 0x10054138
push 0x37
call eax
mov edx, dword [esp + 0x48]
add eax, ebp
mov dword [esp + 0x38], eax
mov eax, dword [edx]
add edi, ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], edi
test eax, eax
jne 0x10054160
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 0x7d2
push esi
call ecx
mov edx, dword [esi]
mov ecx, dword [edx + 0x44]
push 1
lea eax, [esp + 0x34]
push eax
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
push 4
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x68]
push 0
push 0x4202
push esi
call edx
mov edi, dword [esp + 0x4c]
mov ecx, dword [edi]
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
push ecx
push esi
call edx
cmp dword [edi + 0x18], 0
mov eax, dword [esi]
mov edx, dword [eax + 0x124]
je 0x100541f4
mov ecx, dword [0x100c7540]
push ecx
push esi
call edx
mov ecx, dword [edi]
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
push ecx
push esi
call edx
push 0x7f89
push 0
call dword [sym.imp.USER32.DLL_LoadCursorW]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x110]
push eax
push esi
call edx
jmp 0x10054224
mov ecx, dword [0x100c7538]
push ecx
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0xc0]
push 0
push esi
call ecx
push 0x7f00
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, edi
mov edi, dword [ecx + 0xc]
push ecx
mov ebx, esp
call fcn.10005c40
mov ecx, esi
call fcn.10027460
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10054273
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10054257
mov eax, 0xa
jmp 0x10054277
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10054273
mov eax, 0xa
jmp 0x10054277
push 0xa
call eax
mov edx, dword [esi]
sub ebp, eax
mov eax, dword [edx + 8]
push esi
mov dword [esp + 0x14], ebp
call eax
mov eax, 0x100a7ca8
lea edi, [esp + 0x18]
call fcn.1003df80
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x100543c1
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x100542d5
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x100542d9
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
je 0x100542df
push 0
call ecx
jmp 0x100542d9
push 0
call eax
mov ecx, dword [0x100c7a60]
mov edx, dword [esp + 0x20]
lea esi, [eax + edx]
test ecx, ecx
jne 0x10054322
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10054300
mov eax, 0xf
jmp 0x10054326
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x1005431c
mov eax, 0xf
jmp 0x10054326
push 0xf
call eax
jmp 0x10054326
push 0xf
call ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
test eax, eax
jne 0x10054354
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 ecx, dword [eax + 0x28]
push 0x7d0
push ebp
call ecx
mov edx, dword [ebp]
mov ecx, dword [edx + 0x44]
push 1
lea eax, [esp + 0x34]
push eax
push ebp
call ecx
mov eax, dword [0x100c753c]
mov edx, dword [ebp]
mov ecx, dword [edx + 0x124]
push eax
push ebp
call ecx
mov edx, dword [ebp]
mov eax, dword [edx + 0x68]
push 0
push 0x4200
push ebp
call eax
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x7c]
push 5
push ebp
call edx
mov eax, dword [esp + 0x4c]
mov edi, dword [eax + 4]
push ecx
mov ebx, esp
call fcn.10005c40
mov ecx, ebp
call fcn.10027460
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 8]
cmp dword [edx - 8], 0
je 0x100545a1
mov eax, 0x100a7ca8
lea edi, [esp + 0x1c]
call fcn.1003df80
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100545a1
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10054422
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x10054426
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
je 0x1005442c
push 0
call ecx
jmp 0x10054426
push 0
call eax
mov ecx, dword [0x100c7a60]
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x1005446b
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x1005444e
lea edx, [eax + 0xf]
jmp 0x10054471
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x1005446b
lea edx, [eax + 0xf]
jmp 0x10054477
push 0xf
call ecx
mov edx, eax
mov ecx, dword [0x100c7a60]
mov ebx, dword [esp + 0x14]
mov eax, ebx
sub eax, edx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esp + 0x24]
add edi, ebx
test ecx, ecx
jne 0x100544b7
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x100544bb
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
je 0x100544c1
push 0
call ecx
mov ecx, dword [0x100c7a60]
mov ebx, dword [esp + 0x28]
sub ebx, eax
test ecx, ecx
jne 0x10054503
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x100544e1
mov eax, 0xf
jmp 0x10054507
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x100544fd
mov eax, 0xf
jmp 0x10054507
push 0xf
call eax
jmp 0x10054507
push 0xf
call ecx
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
add eax, edi
mov dword [esp + 0x3c], eax
mov eax, dword [edx]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
test eax, eax
jne 0x10054531
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 0x7d1
push esi
call ecx
mov edx, dword [esi]
mov ecx, dword [edx + 0x44]
push 1
lea eax, [esp + 0x34]
push eax
push esi
call ecx
mov eax, dword [0x100c7538]
mov edx, dword [esi]
mov ecx, dword [edx + 0x124]
push eax
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
push 5
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x68]
push 0
push 0x4200
push esi
call edx
mov eax, dword [esp + 0x4c]
mov edi, dword [eax + 8]
push ecx
mov ebx, esp
call fcn.10005c40
mov ecx, esi
call fcn.10027460
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
test ebp, ebp
je 0x100545ae
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 8