Function at 0x42dc82
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48de18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4bf490]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
xor edi, edi
cmp esi, ebx
je 0x42df52
mov dword [esp + 0x18], ebx
mov dword [esp + 0x40], ebx
mov eax, dword [esi]
push 0x10
push 0xd0
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x42df35
push 1
push 0xd
push 0x10
push 0x10
push dword [ebp + 0xc]
call fcn.00419be7
test eax, eax
je 0x42df35
mov dword [esp + 0x14], ebx
mov byte [esp + 0x40], 1
push dword [esi]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x42df1e
mov edi, dword [ebp + 8]
cmp dword [0x4c2690], ebx
jne 0x42dd3c
mov ecx, dword [edi]
mov eax, 0x404d6a
cmp ecx, ebx
je 0x42dd37
push 0x4a09b8
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c2690], eax
call dword [0x4c2690]
test eax, eax
je 0x42ddaa
cmp dword [0x4c2694], ebx
jne 0x42dd6a
mov ecx, dword [edi]
mov eax, 0x404d6a
cmp ecx, ebx
je 0x42dd65
push 0x4a4ef0
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c2694], eax
call dword [0x4c2694]
test eax, eax
je 0x42ddaa
cmp dword [0x4c2688], ebx
jne 0x42dd98
mov ecx, dword [edi]
mov eax, 0x404d6a
cmp ecx, ebx
je 0x42dd93
push 0x4a4ed0
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c2688], eax
push 0x4a22ec
push ebx
call dword [0x4c2688]
mov dword [esp + 0x10], eax
jmp 0x42ddae
mov dword [esp + 0x10], ebx
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x10]
lea esi, [esp + 0x18]
mov dword [esp + 0x24], eax
call fcn.0042df90
push 0xf
pop eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov eax, 0x49f2d8
xor esi, esi
push str.unused
push dword [eax]
call fcn.004793fd
pop ecx
pop ecx
test eax, eax
je 0x42deb0
cmp dword [esp + 0x10], ebx
je 0x42de99
mov edi, dword [esi + 0x49f2dc]
cmp dword [0x4c2698], ebx
jne 0x42de37
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x42dc6b
cmp ecx, ebx
je 0x42de32
push 0x4a0994
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c2698], eax
push ebx
lea eax, [esp + 0x28]
push eax
push edi
push 3
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [0x4c2698]
mov esi, dword [esi + 0x49f2dc]
cmp dword [0x4c269c], ebx
jne 0x42de7b
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x42dc6b
cmp ecx, ebx
je 0x42de76
push str.DrawThemeEdge
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c269c], eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
push esi
push 3
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [0x4c269c]
mov edi, dword [ebp + 8]
jmp 0x42deb0
push dword [esi + 0x49f2e0]
lea eax, [esp + 0x28]
push 4
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_DrawFrameControl]
add dword [esp + 0x24], 0x10
add dword [esp + 0x2c], 0x10
inc dword [esp + 0x1c]
mov esi, dword [esp + 0x1c]
imul esi, esi, 0xc
lea eax, [esi + 0x49f2d8]
cmp dword [eax], ebx
jne 0x42ddea
cmp dword [esp + 0x10], ebx
je 0x42dee8
push dword [esp + 0x10]
mov ecx, edi
call fcn.0042df69
mov dword [esp + 0x10], ebx
push dword [esp + 0x20]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 0xc]
push 0xff00ff
push dword [esp + 0x1c]
push dword [eax]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp dword [esp + 0x10], ebx
je 0x42df1b
push dword [esp + 0x10]
mov ecx, edi
call fcn.0042df69
xor edi, edi
inc edi
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42df35
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
or dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x18], ebx
je 0x42df52
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x42df52
mov dword [esp + 0x18], ebx
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc