Function at 0x41baad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4082e8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4082f4
push eax
mov dword [ebp - 0x10], eax
call esi
push 0x408304
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call esi
push 0x408314
push dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
call esi
push 0x408330
push dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
call esi
push 0x408344
push dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
call esi
push 0x408360
push dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
call esi
push 0x408378
push dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x14], ebx
je 0x41bf41
cmp dword [ebp - 0x4c], ebx
je 0x41bf41
cmp dword [ebp - 0x54], ebx
je 0x41bf41
cmp dword [ebp - 0x44], ebx
je 0x41bf41
cmp dword [ebp - 0x24], ebx
je 0x41bf41
cmp dword [ebp - 0x3c], ebx
je 0x41bf41
cmp eax, ebx
je 0x41bf41
push 0x408430
call edi
push 0x40843c
push eax
mov dword [ebp - 0x38], eax
call esi
mov dword [ebp - 0x74], eax
cmp eax, ebx
jne 0x41bba8
push 0x408454
push 2
push 0x4c
jmp 0x41bf4a
push 0x408488
call edi
push 0x408494
push eax
mov dword [ebp - 0xc], eax
call esi
push 0x4084a0
push dword [ebp - 0xc]
mov edi, eax
call esi
push 0x4084b4
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call esi
push 0x4084cc
push dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
call esi
push 0x4084dc
push dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
call esi
push 0x4084ec
push dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
call esi
push 0x4084f4
push dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
call esi
push 0x408504
push dword [ebp - 0xc]
mov dword [ebp - 0x50], eax
call esi
mov dword [ebp - 0x40], eax
cmp edi, ebx
je 0x41bf36
cmp dword [ebp - 8], ebx
je 0x41bf36
cmp dword [ebp - 0x28], ebx
je 0x41bf36
cmp dword [ebp - 0x18], ebx
je 0x41bf36
cmp dword [ebp - 0x34], ebx
je 0x41bf36
cmp dword [ebp - 0x48], ebx
je 0x41bf36
cmp dword [ebp - 0x50], ebx
je 0x41bf36
cmp eax, ebx
je 0x41bf36
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
call dword [ebp - 0x14]
test eax, eax
jne 0x41bf5c
push ebx
push ebx
push ebx
push 0x408544
call edi
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x41bf2e
push esi
call dword [ebp - 8]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x41bf28
push 0x8040
push ebx
push ebx
push 2
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x41bceb
lea ecx, [ebp - 0xa8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x41bce3
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
jne 0x41bce6
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x41bcef
xor edi, edi
jmp 0x41bcf2
mov edi, dword [ebp + 0x10]
cmp di, bx
je 0x41bcff
movzx esi, di
mov dword [ebp + 0x10], esi
jmp 0x41bd12
push 8
push esi
call dword [ebp - 0x18]
push 0xa
push dword [ebp - 0x14]
mov esi, eax
call dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x14]
call dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x41bf22
push eax
push dword [ebp - 0x20]
call dword [ebp - 0x34]
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x41bf1c
xor eax, eax
xor ecx, ecx
cmp di, bx
je 0x41bd67
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
movzx edx, di
shr edx, 1
sub eax, edx
cmovs eax, ebx
sub ecx, edx
cmovs ecx, ebx
sub dword [ebp - 0x30], eax
jns 0x41bd5f
mov dword [ebp - 0x30], ebx
sub dword [ebp - 0x2c], ecx
jns 0x41bd67
mov dword [ebp - 0x2c], ebx
push 0x40cc0020
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push esi
push ebx
push ebx
push dword [ebp - 0x20]
call dword [ebp - 0x48]
test eax, eax
je 0x41bf13
cmp dword [ebp - 8], ebx
je 0x41bdb0
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x2c]
push dword [ebp - 8]
cmovs ecx, ebx
sub eax, dword [ebp - 0xa0]
cmovs eax, ebx
push eax
push ecx
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_DrawIcon]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x28]
mov dword [ebp - 8], ebx
call dword [ebp - 0x54]
test eax, eax
jne 0x41bf13
cmp dword [ebp - 8], ebx
je 0x41bf13
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 - 0x24]
test eax, eax
jne 0x41bf0d
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41bf0d
cmp dword [ebp + 0x10], ebx
je 0x41bf0d
call fcn.0041e7d1
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x41bf0d
push edi
push dword [ebp - 0x18]
push dword [ebp + 0x10]
call dword [ebp - 0x3c]
test eax, eax
jne 0x41be58
xor esi, esi
cmp dword [ebp + 0x10], ebx
jbe 0x41be58
add edi, 0x30
push dword [edi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41be40
inc esi
add edi, 0x4c
cmp esi, dword [ebp + 0x10]
jb 0x41be26
jmp 0x41be58
imul esi, esi, 0x4c
add esi, dword [ebp - 0x24]
push 0x10
push esi
lea eax, [ebp - 0xb8]
push eax
call fcn.0041e83d
mov dword [ebp + 0x10], ebx
push dword [ebp - 0x24]
call fcn.0041e801
cmp dword [ebp + 0x10], ebx
jne 0x41bf0d
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
inc esi
push esi
push ebx
call dword [ebp - 0x74]
test eax, eax
jne 0x41bf0d
cmp dword [ebp - 0x1c], ebx
je 0x41bf0d
mov dword [ebp - 0x94], ebx
cmp dword [ebp + 0xc], ebx
jbe 0x41bed8
push 0x10
push 0x4082d8
lea eax, [ebp - 0x90]
push eax
call fcn.0041e83d
mov eax, dword [ebp - 0x94]
imul eax, eax, 0x1c
mov dword [ebp + eax - 0x7c], 4
mov eax, dword [ebp - 0x94]
imul eax, eax, 0x1c
mov dword [ebp + eax - 0x80], esi
mov eax, dword [ebp - 0x94]
imul eax, eax, 0x1c
lea ecx, [ebp + 0xc]
mov dword [ebp + eax - 0x78], ecx
inc dword [ebp - 0x94]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [ebp - 0x68]
test eax, eax
mov eax, dword [ebp - 0x1c]
je 0x41bf01
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x1c], ebx
jmp 0x41bf0d
mov edx, dword [eax]
push ebx
push ebx
xor ecx, ecx
push ecx
push ebx
push eax
call dword [edx + 0x14]
push dword [ebp - 8]
call dword [ebp - 0x44]
push dword [ebp - 0x6c]
push dword [ebp - 0x20]
call dword [ebp - 0x34]
push dword [ebp - 0x28]
call dword [ebp - 0x50]
push dword [ebp - 0x20]
call dword [ebp - 0x40]
push dword [ebp - 0x14]
call dword [ebp - 0x40]
push dword [ebp - 0x70]
call dword [ebp - 0x4c]
jmp 0x41bf5c
push 0x408510
push 2
push 0x5c
jmp 0x41bf4a
push 0x408390
push 2
push 0x43
push 0x4083c8
push 0x408410
call fcn.00420542
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
je 0x41bf6c
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x38], ebx
je 0x41bf76
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0xc], ebx
je 0x41bf80
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0xc