Function at 0x438952
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b9406
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x501344]
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 0x438c22
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 0x438c05
push 1
push 0xd
push 0x10
push 0x10
push dword [ebp + 0xc]
call fcn.00422873
test eax, eax
je 0x438c05
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 0x438bee
mov edi, dword [ebp + 8]
cmp dword [0x508ae0], ebx
jne 0x438a0c
mov ecx, dword [edi]
mov eax, 0x40a379
cmp ecx, ebx
je 0x438a07
push 0x4d3c70
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x508ae0], eax
call dword [0x508ae0]
test eax, eax
je 0x438a7a
cmp dword [0x508ae4], ebx
jne 0x438a3a
mov ecx, dword [edi]
mov eax, 0x40a379
cmp ecx, ebx
je 0x438a35
push 0x4d8c04
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x508ae4], eax
call dword [0x508ae4]
test eax, eax
je 0x438a7a
cmp dword [0x508ad8], ebx
jne 0x438a68
mov ecx, dword [edi]
mov eax, 0x40a379
cmp ecx, ebx
je 0x438a63
push 0x4d8be4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x508ad8], eax
push 0x4d5904
push ebx
call dword [0x508ad8]
mov dword [esp + 0x10], eax
jmp 0x438a7e
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.00438c60
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, 0x4d19f0
xor esi, esi
push str.unused
push dword [eax]
call fcn.0049e7aa
pop ecx
pop ecx
test eax, eax
je 0x438b80
cmp dword [esp + 0x10], ebx
je 0x438b69
mov edi, dword [esi + 0x4d19f4]
cmp dword [0x508ae8], ebx
jne 0x438b07
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x43893b
cmp ecx, ebx
je 0x438b02
push 0x4d3c4c
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x508ae8], eax
push ebx
lea eax, [esp + 0x28]
push eax
push edi
push 3
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [0x508ae8]
mov esi, dword [esi + 0x4d19f4]
cmp dword [0x508aec], ebx
jne 0x438b4b
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x43893b
cmp ecx, ebx
je 0x438b46
push str.DrawThemeEdge
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x508aec], 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 [0x508aec]
mov edi, dword [ebp + 8]
jmp 0x438b80
push dword [esi + 0x4d19f8]
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 + 0x4d19f0]
cmp dword [eax], ebx
jne 0x438aba
cmp dword [esp + 0x10], ebx
je 0x438bb8
push dword [esp + 0x10]
mov ecx, edi
call fcn.00438c39
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 0x438beb
push dword [esp + 0x10]
mov ecx, edi
call fcn.00438c39
xor edi, edi
inc edi
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x438c05
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 0x438c22
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x438c22
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