Function at 0x100545c0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
push edi
test eax, eax
jne 0x100545db
push 0x80004003
call fcn.100830f0
mov edx, dword [esp + 0x4c]
mov edx, dword [edx]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc0]
call eax
mov eax, dword [esi]
test eax, eax
jne 0x100545fd
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 0x10054617
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]
test eax, eax
jne 0x1005466c
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x100a6b44
call edi
test eax, eax
je 0x10054676
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
je 0x1005467c
push 0
call ecx
jmp 0x10054676
push 0
call eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
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 + 0x18], eax
test ecx, ecx
jne 0x100546bf
push 0x100a6b44
call edi
test eax, eax
jne 0x100546a2
lea edx, [eax + 0xf]
jmp 0x100546c5
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x100546bf
lea edx, [eax + 0xf]
jmp 0x100546cb
push 0xf
call ecx
mov edx, eax
mov ecx, dword [0x100c7a60]
mov eax, esi
mov esi, dword [esp + 0x28]
sub esi, dword [esp + 0x20]
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 0x1005471e
push 0x100a6b44
call edi
test eax, eax
jne 0x100546fc
mov eax, 0x4b
jmp 0x10054722
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10054718
mov eax, 0x4b
jmp 0x10054722
push 0x4b
call eax
jmp 0x10054722
push 0x4b
call ecx
sub esi, eax
mov eax, 0x100a7ca8
lea edi, [esp + 0x14]
call fcn.1003df80
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x10054816
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10054779
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x1005475d
mov eax, 0xf
jmp 0x1005477d
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10054779
mov eax, 0xf
jmp 0x1005477d
push 0xf
call eax
mov ecx, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
add esi, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
test eax, eax
jne 0x100547a9
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 [0x100c7544]
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 + 0xc]
cmp dword [edx - 8], 0
je 0x100549ac
mov eax, 0x100a7ca8
lea edi, [esp + 0x18]
call fcn.1003df80
mov esi, dword [esp + 0x18]
test esi, esi
je 0x100549ac
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10054883
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x10054860
mov eax, 0x41
jmp 0x10054887
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x100c7a60], ecx
test ecx, ecx
jne 0x1005487d
lea eax, [ecx + 0x41]
jmp 0x1005488d
push 0x41
call ecx
jmp 0x10054887
push 0x41
call eax
mov ecx, dword [0x100c7a60]
mov ebx, dword [esp + 0x28]
sub ebx, eax
test ecx, ecx
jne 0x100548cb
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x100548ab
lea edi, [eax + 0xf]
jmp 0x100548d1
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x100548c5
lea edi, [eax + 0xf]
jmp 0x100548da
push 0xf
call eax
jmp 0x100548cf
push 0xf
call ecx
mov edi, eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x1005490c
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x100548f0
mov eax, 0x37
jmp 0x10054910
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x1005490c
mov eax, 0x37
jmp 0x10054910
push 0x37
call eax
mov ecx, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
add edi, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edi
test eax, eax
jne 0x1005493c
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 0x7d3
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 + 0x68]
push 0
push 0x4202
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x7c]
push 4
push esi
call edx
mov eax, dword [esp + 0x4c]
mov edi, dword [eax + 0xc]
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 0x100549b9
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