Function at 0x40fe48
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x422724]
push ebx
push esi
push edi
push dword [eax + 0x6c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov eax, dword [0x422724]
push dword [eax + 0x7c]
push edi
call esi
mov dword [ebp - 0x14], eax
mov eax, dword [0x422724]
push dword [eax + 0x80]
push edi
call esi
mov dword [ebp - 0x44], eax
mov eax, dword [0x422724]
push dword [eax + 0x84]
push edi
call esi
mov dword [ebp - 0x3c], eax
mov eax, dword [0x422724]
push dword [eax + 0x88]
push edi
call esi
mov dword [ebp - 0x48], eax
mov eax, dword [0x422724]
push dword [eax + 0x8c]
push edi
call esi
mov dword [ebp - 0x38], eax
mov eax, dword [0x422724]
push dword [eax + 0x90]
push edi
call esi
mov dword [ebp - 0x4c], eax
mov eax, dword [0x422724]
push dword [eax + 0x94]
push edi
call esi
xor ebx, ebx
mov dword [ebp - 0x50], eax
cmp edi, ebx
je 0x4102cb
cmp dword [ebp - 0x14], ebx
je 0x4102cb
cmp dword [ebp - 0x44], ebx
je 0x4102cb
cmp dword [ebp - 0x3c], ebx
je 0x4102cb
cmp dword [ebp - 0x48], ebx
je 0x4102cb
cmp dword [ebp - 0x38], ebx
je 0x4102cb
cmp dword [ebp - 0x4c], ebx
je 0x4102cb
cmp eax, ebx
je 0x4102cb
mov eax, dword [0x422724]
push dword [eax + 0x70]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
mov ecx, dword [0x422724]
push dword [ecx + 0x98]
mov dword [ebp - 0x28], eax
push eax
call esi
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x28], ebx
je 0x4102cb
cmp eax, ebx
je 0x4102cb
mov eax, dword [0x422724]
push dword [eax + 0x74]
call edi
mov edi, eax
mov eax, dword [0x422724]
push dword [eax + 0x9c]
push edi
call esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x422724]
push dword [eax + 0xa0]
push edi
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [0x422724]
push dword [eax + 0xa4]
push edi
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x422724]
push dword [eax + 0xa8]
push edi
call esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x422724]
push dword [eax + 0xac]
push edi
call esi
mov dword [ebp - 0x2c], eax
mov eax, dword [0x422724]
push dword [eax + 0xb0]
push edi
call esi
mov dword [ebp - 0x40], eax
mov eax, dword [0x422724]
push dword [eax + 0xb4]
push edi
call esi
mov dword [ebp - 0x34], eax
mov eax, dword [0x422724]
push dword [eax + 0xb8]
push edi
call esi
mov dword [ebp - 0x28], eax
cmp edi, ebx
je 0x4102cb
cmp dword [ebp - 0xc], ebx
je 0x4102cb
cmp dword [ebp - 0x10], ebx
je 0x4102cb
cmp dword [ebp - 8], ebx
je 0x4102cb
cmp dword [ebp - 0x18], ebx
je 0x4102cb
cmp dword [ebp - 0x2c], ebx
je 0x4102cb
cmp dword [ebp - 0x40], ebx
je 0x4102cb
cmp dword [ebp - 0x34], ebx
je 0x4102cb
cmp eax, ebx
je 0x4102cb
mov si, word [ebp + 0x10]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
cmp si, bx
jne 0x410071
call fcn.00414774
test al, al
je 0x4102c6
push ebx
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [ebp - 0x14]
test eax, eax
jne 0x4102c6
mov eax, dword [0x422724]
push ebx
push ebx
push ebx
push dword [eax + 0x78]
call dword [ebp - 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [ebp - 0x10]
push 0x7f00
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
lea ecx, [ebp - 0xa0]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetIconInfo]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp si, bx
je 0x4100da
movzx edi, si
mov dword [ebp + 0x10], edi
jmp 0x4100ef
push 8
push dword [ebp - 0xc]
call dword [ebp - 8]
push 0xa
push dword [ebp - 0xc]
mov edi, eax
call dword [ebp - 8]
mov dword [ebp + 0x10], eax
push dword [ebp + 0x10]
push edi
push dword [ebp - 0xc]
call dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x4102b4
push eax
push dword [ebp - 0x10]
call dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
xor eax, eax
xor ecx, ecx
cmp si, bx
je 0x41012c
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, si
shr edx, 1
sub eax, edx
sub dword [ebp - 0x24], eax
sub ecx, edx
sub dword [ebp - 0x20], ecx
push 0x40cc0020
push ecx
push eax
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push edi
push ebx
push ebx
push dword [ebp - 0x10]
call dword [ebp - 0x40]
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x9c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DrawIcon]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x30]
mov dword [ebp - 8], ebx
call dword [ebp - 0x3c]
test eax, eax
jne 0x4102a5
cmp dword [ebp - 8], ebx
je 0x4102a5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [ebp - 0x38]
test eax, eax
jne 0x41029f
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41029f
cmp dword [ebp + 0x10], ebx
je 0x41029f
call fcn.00403db0
mov esi, eax
cmp esi, ebx
je 0x41029f
push esi
push dword [ebp - 0x18]
push dword [ebp + 0x10]
call dword [ebp - 0x4c]
xor edi, edi
cmp dword [ebp + 0x10], ebx
jbe 0x410209
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4101f2
add dword [ebp - 0x14], 0x4c
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x4101d4
jmp 0x410209
imul edi, edi, 0x4c
push 0x10
add edi, esi
push edi
lea eax, [ebp - 0xb0]
push eax
call fcn.00403e04
mov dword [ebp - 0x18], ebx
push esi
call fcn.00403dc8
cmp dword [ebp - 0x18], ebx
jne 0x41029f
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
inc esi
push esi
push ebx
call dword [ebp - 0x58]
test eax, eax
jne 0x41029f
cmp dword [ebp - 0x1c], ebx
je 0x41029f
mov dword [ebp - 0x7c], ebx
cmp dword [ebp + 0xc], ebx
jbe 0x41026d
push 0x10
push 0x401720
lea eax, [ebp - 0x78]
push eax
call fcn.00403e04
mov eax, dword [ebp - 0x7c]
imul eax, eax, 0x1c
mov dword [ebp + eax - 0x64], 4
mov eax, dword [ebp - 0x7c]
imul eax, eax, 0x1c
mov dword [ebp + eax - 0x68], esi
mov eax, dword [ebp - 0x7c]
imul eax, eax, 0x1c
lea ecx, [ebp + 0xc]
mov dword [ebp + eax - 0x60], ecx
inc dword [ebp - 0x7c]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [ebp - 0x50]
test eax, eax
mov eax, dword [ebp - 0x1c]
je 0x410293
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x1c], ebx
jmp 0x41029f
mov edx, dword [eax]
push ebx
push ebx
push ebx
xor ecx, ecx
push ecx
push eax
call dword [edx + 0x14]
push dword [ebp - 8]
call dword [ebp - 0x48]
push dword [ebp - 0x5c]
push dword [ebp - 0x10]
call dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [ebp - 0x34]
push dword [ebp - 0x10]
call dword [ebp - 0x28]
push dword [ebp - 0xc]
call dword [ebp - 0x28]
push dword [ebp - 0x54]
call dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
jmp 0x4102cd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc