Function at 0x430d6d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49a356
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4d7488]
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 0x43103d
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 0x431020
push 1
push 0xd
push 0x10
push 0x10
push dword [ebp + 0xc]
call fcn.0041c2ca
test eax, eax
je 0x431020
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 0x431009
mov edi, dword [ebp + 8]
cmp dword [0x4de370], ebx
jne 0x430e27
mov ecx, dword [edi]
mov eax, 0x430d53
cmp ecx, ebx
je 0x430e22
push 0x4b3368
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4de370], eax
call dword [0x4de370]
test eax, eax
je 0x430e95
cmp dword [0x4de374], ebx
jne 0x430e55
mov ecx, dword [edi]
mov eax, 0x430d53
cmp ecx, ebx
je 0x430e50
push 0x4b78f4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4de374], eax
call dword [0x4de374]
test eax, eax
je 0x430e95
cmp dword [0x4de368], ebx
jne 0x430e83
mov ecx, dword [edi]
mov eax, 0x430d53
cmp ecx, ebx
je 0x430e7e
push 0x4b78d4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4de368], eax
push 0x4b4c7c
push ebx
call dword [0x4de368]
mov dword [esp + 0x10], eax
jmp 0x430e99
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.0043107b
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, 0x4b1800
xor esi, esi
push str.unused
push dword [eax]
call fcn.0048522d
pop ecx
pop ecx
test eax, eax
je 0x430f9b
cmp dword [esp + 0x10], ebx
je 0x430f84
mov edi, dword [esi + 0x4b1804]
cmp dword [0x4de378], ebx
jne 0x430f22
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x430d56
cmp ecx, ebx
je 0x430f1d
push 0x4b3344
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4de378], eax
push ebx
lea eax, [esp + 0x28]
push eax
push edi
push 3
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [0x4de378]
mov esi, dword [esi + 0x4b1804]
cmp dword [0x4de37c], ebx
jne 0x430f66
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x430d56
cmp ecx, ebx
je 0x430f61
push str.DrawThemeEdge
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4de37c], 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 [0x4de37c]
mov edi, dword [ebp + 8]
jmp 0x430f9b
push dword [esi + 0x4b1808]
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 + 0x4b1800]
cmp dword [eax], ebx
jne 0x430ed5
cmp dword [esp + 0x10], ebx
je 0x430fd3
push dword [esp + 0x10]
mov ecx, edi
call fcn.00431054
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 0x431006
push dword [esp + 0x10]
mov ecx, edi
call fcn.00431054
xor edi, edi
inc edi
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x431020
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 0x43103d
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x43103d
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