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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push esi
mov esi, ecx
push edi
push 0
push 0
mov edi, dword [esi + 0x478]
push 0x1004
push edi
mov dword [esp + 0x28], esi
call ebx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
fld qword [esi + 0x358]
sub eax, ecx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fdiv st(1)
call fcn.004c64c8
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x78]
sub ecx, ebp
mov esi, eax
mov dword [esp + 0x78], ecx
fild dword [esp + 0x78]
fdiv st(1)
call fcn.004c64c8
mov ebp, eax
push 0
push esi
push ebp
push 0
push 0
push 0
push edi
fstp st(0)
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], esi
lea eax, [edx + 0x44c]
mov dword [esp + 0x5c], ebp
mov edx, eax
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 4], eax
mov dword [edx + 8], ebp
xor ebp, ebp
mov dword [edx + 0xc], esi
mov eax, dword [0x4d9540]
lea esi, [ecx + 0x46c]
mov dword [esp + 0x34], eax
mov eax, dword [esi]
cmp eax, ebp
je 0x4a1b7f
push eax
call fcn.004c5be2
add esp, 4
mov dword [esi], ebp
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4a1b92
push eax
call fcn.004c5be2
add esp, 4
mov dword [esi + 4], ebp
mov edx, dword [esp + 0x10]
push 1
mov dword [esi + 8], ebp
lea eax, [edx - 1]
push eax
push 0x1013
push edi
mov dword [esp + 0x38], eax
call ebx
push 1
push ebp
push 0x1013
push edi
call ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], ebp
test eax, eax
jle 0x4a1c86
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0
push eax
push ebp
push 0x100e
push edi
call ebx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
inc ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x50]
lea eax, [edx - 2]
push ecx
lea edx, [esp + 0x58]
push eax
push edx
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4a1c13
mov eax, dword [esp + 0x78]
inc eax
cmp eax, 1
mov dword [esp + 0x78], eax
je 0x4a1c1e
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x4a1bc6
jmp 0x4a1c86
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x48]
add edx, 2
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
sub edx, eax
push 0
sub ecx, ebp
push edx
push ecx
push eax
push ebp
push 0
push edi
mov dword [esp + 0x98], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov eax, ecx
mov ebp, dword [esp + 0x54]
sub eax, edx
push 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
add eax, 0x44c
mov dword [esp + 0x7c], 0
mov edx, eax
mov dword [edx], ebp
mov ebp, dword [esp + 0x5c]
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x60]
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebp, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub ebp, ecx
sub eax, edx
push ebp
push eax
push ecx
push edx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 0x101f
push edi
mov dword [esp + 0x3c], 0
call ebx
test eax, eax
je 0x4a1d38
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x448]
test eax, eax
je 0x4a1d38
push 0
push 0
push 0x101f
push edi
call ebx
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x20]
mov edx, ecx
sub edx, eax
add ebp, edx
sub eax, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], eax
mov eax, dword [0x4d9540]
mov ecx, 0x4e3a5c
test ecx, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
je 0x4a1d8c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x4a1d8c
push ebp
lea ecx, [esp + 0x20]
call fcn.004012f0
test eax, eax
je 0x4a1d8c
mov edx, dword [esp + 0x1c]
inc ebp
push ebp
push 0x4e3a5c
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call int.00401970
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x24], ebp
jle 0x4a1ea8
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0
push eax
push ebp
push 0x100e
push edi
call ebx
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
lea eax, [edx + ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0x60]
sar eax, 1
cmp eax, edx
jl 0x4a1e9b
mov edx, dword [esp + 0x78]
mov eax, ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
mov edx, dword [esi]
lea ecx, [eax*4 + 4]
push ecx
push edx
call fcn.004c58b3
add esp, 8
test eax, eax
je 0x4a1e44
mov dword [esi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
inc eax
lea eax, [eax + eax*2]
shl eax, 2
push eax
push ecx
call fcn.004c58b3
add esp, 8
test eax, eax
je 0x4a1e44
mov edx, dword [esi + 8]
mov dword [esi + 4], eax
inc edx
lea ecx, [esp + 0x30]
mov dword [esi + 8], edx
mov eax, edx
lea edx, [esp + 0x38]
dec eax
push edx
push ecx
push eax
mov ecx, esi
call fcn.004a24e0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
add edx, eax
add ecx, eax
mov eax, dword [0x4edfac]
test eax, eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], ecx
je 0x4a1e8a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov eax, ebp
sub eax, ecx
test edx, edx
jne 0x4a1e7b
mov dword [esp + 0x24], eax
jmp 0x4a1e8a
cmp eax, edx
jle 0x4a1e8a
add edx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
dec ebp
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x4a1d9e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
dec eax
cmp ecx, eax
mov dword [esp + 0x24], eax
je 0x4a1f52
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x64]
push ecx
push edx
push 0x100e
push edi
mov dword [esp + 0x74], 0
call ebx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esi]
lea ecx, [eax*4 + 4]
push ecx
push edx
call fcn.004c58b3
add esp, 8
test eax, eax
je 0x4a1f52
mov dword [esi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
inc eax
lea eax, [eax + eax*2]
shl eax, 2
push eax
push ecx
call fcn.004c58b3
add esp, 8
test eax, eax
je 0x4a1f52
mov edx, dword [esi + 8]
mov dword [esi + 4], eax
inc edx
lea ecx, [esp + 0x30]
mov dword [esi + 8], edx
mov eax, edx
lea edx, [esp + 0x44]
dec eax
push edx
push ecx
push eax
mov ecx, esi
call fcn.004a24e0
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x4a1fe8
lea edx, [esp + 0x64]
mov dword [esp + 0x64], 0
push edx
push ebp
push 0x100e
push edi
call ebx
mov eax, dword [esp + 0x70]
mov ecx, dword [esi + 8]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esi]
lea edx, [ecx*4 + 4]
mov dword [esp + 0x78], 0
push edx
push eax
call fcn.004c58b3
add esp, 8
test eax, eax
je 0x4a1fe8
mov dword [esi], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
inc eax
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
push edx
call fcn.004c58b3
add esp, 8
test eax, eax
je 0x4a1fe8
mov ebp, dword [esi + 8]
mov dword [esi + 4], eax
inc ebp
lea ecx, [esp + 0x44]
mov eax, ebp
lea edx, [esp + 0x78]
push ecx
dec eax
push edx
push eax
mov ecx, esi
mov dword [esi + 8], ebp
call fcn.004a24e0
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x474]
cmp eax, 1
jle 0x4a2100
mov ecx, dword [esi + 0x470]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4 - 0xc]
mov eax, dword [ecx + eax*4 - 0xc]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
lea edx, [esp + 0x44]
push edx
push eax
push 0x100e
push edi
mov dword [esp + 0x90], ecx
mov dword [esp + 0x54], 0
call ebx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x64]
push eax
push ecx
xor ebp, ebp
push 0x100e
push edi
mov dword [esp + 0x74], ebp
call ebx
lea ecx, [esi + 0x44c]
lea eax, [esi + 0x45c]
mov edx, ecx
mov edi, eax
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [edx + 8]
mov dword [edi + 8], ebx
mov ebx, dword [esp + 0x48]
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x2c]
sub edx, ebx
add edx, edi
mov dword [esi + 0x460], ebp
mov dword [esi + 0x468], edx
mov edx, dword [0x4d9540]
mov ebp, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 8]
sub edx, ebp
mov ebp, dword [ecx]
push edx
mov edx, dword [eax + 0xc]
mov eax, dword [ecx + 8]
sub edx, edi
mov edi, dword [ecx + 4]
push edx
mov edx, dword [ecx + 0xc]
sub eax, ebp
sub edx, edi
push eax
push edx
lea eax, [esp + 0x88]
push str.__d__d___d__d_
push eax
call fcn.00401a70
mov eax, dword [esp + 0x90]
mov edx, dword [0x4d9544]
add esp, 0x18
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a2100
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a2100
mov edx, dword [esp + 0x78]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4d9544]
mov esi, dword [esi + 0x474]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a2135
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a2135
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x34]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a215d
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a215d
push edi
call fcn.004c5432
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x10