Function at 0x4214a6
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
mov eax, dword [0x514d34]
xor eax, esp
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp], eax
push ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
push ebp
mov ebp, eax
push esi
mov esi, eax
mov dword [esp + 0x10], esi
push edi
mov edi, dword [esp + 0x38]
test ecx, ecx
je 0x42150a
mov eax, dword [0x50d248]
push dword [eax]
push ecx
call fcn.004117d5
pop ecx
pop ecx
movzx ecx, ax
mov eax, dword [0x50d264]
movzx eax, word [eax]
imul eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
movzx eax, ax
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x42156f
cmp byte [ebx], 0
mov ebp, ebx
je 0x42156c
mov ebx, dword [esp + 0x14]
mov eax, dword [0x50d248]
push dword [eax]
push ebp
call fcn.004117d5
pop ecx
pop ecx
movzx ecx, ax
mov eax, dword [0x50d264]
movzx esi, word [eax]
mov eax, esi
imul eax, ecx
imul ecx, esi, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
movzx eax, ax
cmp ax, bx
jbe 0x421550
mov ebx, eax
push ebp
call fcn.00447230
inc ebp
add ebp, eax
pop ecx
cmp byte [ebp], 0
jne 0x421519
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
movzx ebp, si
movzx eax, word [edi + 6]
xor esi, esi
test ax, ax
je 0x4215a3
cmp word [edi + 0x158], si
jne 0x4215a3
lea ecx, [esp + 0x20]
dec eax
push ecx
push eax
push 0x41d
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ax, word [esp + 0x28]
mov word [edi + 0x158], ax
lea eax, [esp + 0x20]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x18], 0
push 4
pop edx
je 0x42166a
cmp word [esp + 0x48], 0
mov edx, dword [esp + 0x10]
je 0x4215dd
mov ecx, dword [esp + 0x28]
movzx eax, bp
sub ecx, eax
movzx eax, dx
sub ecx, eax
sub ecx, 0xa
jmp 0x4215e7
movzx ecx, word [edi + 0x158]
add ecx, 5
mov eax, dword [0x50d254]
push esi
test byte [edi + 0x14e], 0x10
push dword [eax]
mov eax, dword [0x50d260]
push esi
push dword [edi]
movzx eax, word [eax]
push eax
movzx eax, dx
push eax
push 8
pop eax
push 4
pop edx
cmovne eax, edx
push eax
push ecx
push 0x4000000c
push 0x4c060e
push str.STATIC
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
movzx ecx, word [edi + 0x182]
mov esi, eax
mov dword [edi + ecx*4 + 0x15a], esi
call fcn.00411141
push 0
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [esp + 0x18]
push 0
push 0xc
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
inc word [edi + 0x182]
push 4
pop edx
test ebx, ebx
je 0x42176f
cmp word [esp + 0x48], 0
je 0x421688
mov ecx, dword [esp + 0x28]
movzx eax, bp
sub ecx, eax
sub ecx, 5
jmp 0x42169b
movzx ecx, word [edi + 0x158]
mov eax, dword [esp + 0x10]
add ecx, 0xa
movzx eax, ax
add ecx, eax
mov eax, dword [0x50d254]
push 0
push dword [eax]
mov eax, dword [0x50d260]
push 0
push dword [edi]
movzx eax, word [eax]
imul eax, eax, 0xa
push eax
movzx eax, bp
push eax
movzx eax, word [edi + 0x14e]
shr eax, 2
not eax
and eax, edx
or eax, 1
push eax
push ecx
push 0x40a00003
push 0x4c060e
push str.COMBOBOX
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExA]
movzx ecx, word [edi + 0x198]
mov esi, eax
mov dword [edi + ecx*4 + 0x184], esi
call fcn.00411141
push 0
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x421721
push ebx
push 0
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call fcn.00447230
inc ebx
pop ecx
add ebx, eax
cmp byte [ebx], 0
jne 0x421708
movzx eax, word [esp + 0x44]
push 0
push eax
push 0x14e
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
movzx ecx, word [edi + 0x198]
push 0x4213c9
push 0xfffffffffffffffc
push esi
mov dword [edi + ecx*4 + 0x1ae], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
inc word [edi + 0x198]
cmp word [esp + 0x48], 0
jne 0x421787
mov eax, dword [esp + 0x10]
add eax, 0xa
add eax, ebp
add word [edi + 0x158], ax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441a5e
add esp, 0x24
ret