Function at 0x4385aa
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba06b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x502344]
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 0x43887a
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 0x43885d
push 1
push 0xd
push 0x10
push 0x10
push dword [ebp + 0xc]
call fcn.00422700
test eax, eax
je 0x43885d
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 0x438846
mov edi, dword [ebp + 8]
cmp dword [0x509ac8], ebx
jne 0x438664
mov ecx, dword [edi]
mov eax, 0x469317
cmp ecx, ebx
je 0x43865f
push 0x4d4c38
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x509ac8], eax
call dword [0x509ac8]
test eax, eax
je 0x4386d2
cmp dword [0x509acc], ebx
jne 0x438692
mov ecx, dword [edi]
mov eax, 0x469317
cmp ecx, ebx
je 0x43868d
push 0x4d9bf4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x509acc], eax
call dword [0x509acc]
test eax, eax
je 0x4386d2
cmp dword [0x509ac0], ebx
jne 0x4386c0
mov ecx, dword [edi]
mov eax, 0x469317
cmp ecx, ebx
je 0x4386bb
push 0x4d9bd4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x509ac0], eax
push 0x4d68cc
push ebx
call dword [0x509ac0]
mov dword [esp + 0x10], eax
jmp 0x4386d6
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.004388b8
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, 0x4d29c8
xor esi, esi
push str.unused
push dword [eax]
call fcn.0049f4fa
pop ecx
pop ecx
test eax, eax
je 0x4387d8
cmp dword [esp + 0x10], ebx
je 0x4387c1
mov edi, dword [esi + 0x4d29cc]
cmp dword [0x509ad0], ebx
jne 0x43875f
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x438593
cmp ecx, ebx
je 0x43875a
push 0x4d4c14
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x509ad0], eax
push ebx
lea eax, [esp + 0x28]
push eax
push edi
push 3
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [0x509ad0]
mov esi, dword [esi + 0x4d29cc]
cmp dword [0x509ad4], ebx
jne 0x4387a3
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x438593
cmp ecx, ebx
je 0x43879e
push str.DrawThemeEdge
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x509ad4], 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 [0x509ad4]
mov edi, dword [ebp + 8]
jmp 0x4387d8
push dword [esi + 0x4d29d0]
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 + 0x4d29c8]
cmp dword [eax], ebx
jne 0x438712
cmp dword [esp + 0x10], ebx
je 0x438810
push dword [esp + 0x10]
mov ecx, edi
call fcn.00438891
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 0x438843
push dword [esp + 0x10]
mov ecx, edi
call fcn.00438891
xor edi, edi
inc edi
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x43885d
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 0x43887a
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x43887a
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