Function at 0x421080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
push ebx
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0x2c]
push edi
mov ecx, dword [ebp + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
sub eax, esi
mov esi, dword [esp + 0x3c]
sub esi, edx
mov edx, dword [ebp + 0x2c]
push 0
push 0
push 0x418
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], esi
call ebx
mov edx, eax
mov ecx, 7
dec edx
xor eax, eax
lea edi, [esp + 0x64]
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
test edx, edx
mov dword [esp + 0x60], 0x20
mov dword [esp + 0x64], 0xa
mov byte [esp + 0x71], 0x18
mov dword [esp + 0x10], eax
jle 0x4211c0
mov eax, dword [ebp + 0xe4]
mov ecx, dword [esp + 0x10]
xor edx, edx
lea edi, [eax + ecx*4]
mov dword [esp + 0x28], edi
mov eax, dword [edi]
cmp dword [eax - 0xc], 1
lea ecx, [eax - 0xc]
mov dword [esp + 0x24], ecx
jg 0x421127
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x421188
mov eax, dword [eax - 8]
test eax, eax
mov dword [esp + 0x20], eax
jle 0x421134
mov edx, eax
push edx
mov ecx, edi
call fcn.00405530
test eax, eax
jne 0x421144
xor edi, edi
jmp 0x42118a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edi, dword [edi]
lea ecx, [edx + edx + 2]
lea esi, [eax + 0xc]
mov edx, ecx
mov eax, dword [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
push eax
mov dword [ecx - 8], edx
call fcn.00405590
mov esi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x28]
mov edi, dword [edi]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x2c]
lea ecx, [esp + 0x60]
add edx, 0x6f
push ecx
push edx
push 0x440
push eax
mov dword [esp + 0x88], edi
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4210fe
mov edx, ecx
lea eax, [edx - 1]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x421436
jmp 0x4211d9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
lea eax, [edx - 1]
mov edx, dword [ebp + 0x2c]
push ecx
push eax
push 0x41d
push edx
call ebx
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x64], 0xa
mov byte [esp + 0x71], 8
lea eax, [edi - 0x2c]
cmp ecx, eax
jle 0x42141e
cmp dword [0x54a2ec], 1
je 0x4213fe
mov eax, dword [esp + 0x10]
mov ebx, dword [ebp + 0xe4]
mov dword [esp + 0x64], 2
mov byte [esp + 0x71], 8
lea edi, [eax*4]
mov eax, dword [ebx + edi]
add ebx, edi
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
jg 0x421259
mov edx, dword [eax - 4]
test edx, edx
jge 0x4212a8
mov eax, dword [eax - 8]
test eax, eax
mov dword [esp + 0x28], eax
jle 0x421266
mov ecx, eax
push ecx
mov ecx, ebx
call fcn.00405530
test eax, eax
jne 0x421276
xor ebx, ebx
jmp 0x4212aa
mov ecx, dword [esp + 0x28]
mov edi, dword [ebx]
add esi, 0xc
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x2c]
mov dword [eax - 8], ecx
call fcn.00405590
mov edi, dword [esp + 0x24]
mov ebx, dword [ebx]
mov ecx, dword [ebp + 0xe8]
mov esi, edi
add esi, ecx
test ebx, ebx
jne 0x4212bc
xor eax, eax
jmp 0x4212c3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push eax
mov ecx, esi
call fcn.00405870
mov eax, dword [ebp + 0xe8]
mov ecx, dword [edi + eax]
lea ebx, [edi + eax]
cmp dword [ecx - 8], 3
jle 0x42137d
mov eax, dword [ebx]
mov ecx, 4
mov edx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x20], esi
jg 0x4212fd
cmp dword [eax - 4], ecx
jge 0x421348
mov eax, dword [eax - 8]
cmp eax, ecx
mov dword [esp + 0x28], eax
jle 0x42130a
mov ecx, eax
push ecx
mov ecx, ebx
call fcn.00405530
test eax, eax
jne 0x42131a
xor ebx, ebx
jmp 0x42134a
mov edx, dword [esp + 0x28]
mov edi, dword [ebx]
add esi, 0xc
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], edx
call fcn.00405590
mov edi, dword [esp + 0x24]
mov ebx, dword [ebx]
mov word [ebx + 4], 0x7e
mov word [ebx + 6], 0
mov ecx, dword [ebp + 0xe8]
mov esi, edi
add esi, ecx
mov ecx, esi
call fcn.004055c0
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esi]
mov dword [edx - 8], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov esi, dword [ebp + 0xe8]
xor ecx, ecx
add edi, esi
mov ebx, edi
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x24], esi
jg 0x4213a1
mov edx, dword [eax - 4]
test edx, edx
jge 0x4213e8
mov edi, dword [eax - 8]
test edi, edi
mov dword [esp + 0x28], edi
jle 0x4213ae
mov ecx, edi
push ecx
mov ecx, ebx
call fcn.00405530
test eax, eax
jne 0x4213be
xor ebx, ebx
jmp 0x4213ea
lea ecx, [edi + edi + 2]
mov edi, dword [ebx]
mov edx, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x2c]
mov dword [eax - 8], ecx
call fcn.00405590
mov ebx, dword [ebx]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x78], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421406
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x2c]
lea eax, [esp + 0x60]
add ecx, 0x6f
push eax
push ecx
push 0x440
push edx
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ecx
dec eax
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x4211d5
jmp 0x42143a
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0xf0]
mov edx, dword [ebp + 0x30]
mov ecx, edi
push 0
sub ecx, eax
push esi
push ecx
push 0
push 0
push 1
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x2c]
lea ecx, [esp + 0x40]
dec eax
push ecx
push eax
push 0x41d
push edx
mov dword [esp + 0x38], eax
call ebx
mov eax, dword [ebp + 0xf0]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x60]
sub ecx, eax
mov eax, dword [ebp + 0x2c]
push edx
push 0x463
sub ecx, 2
push 0x440
push eax
mov dword [esp + 0x74], 0x40
mov word [esp + 0x82], cx
call ebx
mov eax, dword [ebp + 0xec]
test eax, eax
je 0x4214d5
lea ecx, [esi - 6]
push 8
push ecx
mov ecx, dword [ebp + 0xf0]
mov edx, edi
sub edx, ecx
sub edx, 2
push edx
push 3
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp esi, 0x12
mov dword [esp + 0x2c], esi
jg 0x4214e6
mov dword [esp + 0x2c], 0x12
mov eax, dword [0x546560]
push esi
lea ecx, [esp + 0x20]
push 0x547b34
push ecx
mov dword [esp + 0x28], eax
call fcn.00405cb0
mov eax, dword [esp + 0x38]
mov edx, esi
and edx, 0xffff
and eax, 0xffff
shl edx, 0x10
add esp, 0xc
or edx, eax
mov eax, dword [ebp + 0x2c]
push edx
push 0
push 0x41f
push eax
call ebx
cmp dword [0x54a2ec], 1
je 0x421541
mov ecx, dword [ebp + 0x2c]
push 0xfffc
push 0
push 0x420
push ecx
jmp 0x42159f
mov edx, dword [ebp + 0x2c]
push 0
push 0
push 0x431
push edx
call ebx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x42158f
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 0x2c]
mov ecx, eax
add eax, 0xfffffffe
and ecx, 0xffff
and eax, 0xffff
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x420
push edx
jmp 0x42159f
mov eax, dword [ebp + 0x2c]
push 0x20001e
push 0
push 0x420
push eax
call ebx
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0x2c]
lea ecx, [esp + 0x40]
push ecx
push edx
push 0x41d
push eax
call ebx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
sub eax, edx
mov ecx, esi
add eax, esi
push 8
sar eax, 1
sub ecx, eax
mov edx, edi
push ecx
mov ecx, dword [ebp + 0xf0]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp + 0x2c]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x42162f
lea ecx, [esp + 0x50]
push ecx
push 0
push 0x41d
push eax
call ebx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
sub eax, edx
mov edx, dword [ebp + 0x20]
add eax, esi
sub ecx, ebx
sar eax, 1
sub esi, eax
push 8
push esi
push ecx
sub edi, ecx
push eax
push edi
push 0
push edx
mov dword [ebp + 0xf0], ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x421662
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x421662
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
add esp, 0x70
ret