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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff80
mov ebx, edx
mov esi, eax
lea eax, [esp + 0x20]
push eax
mov eax, esi
call fcn.004552a4
push eax
call sub.user32.dll_GetWindowRect
cmp dword [0x5ac50c], 0
jne 0x4d6976
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.004d0048
mov dword [0x5ac50c], eax
push 0
call sub.user32.dll_GetDC
mov edi, eax
push 0xcc0020
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
push edi
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [0x5ac50c]
call fcn.00429a18
call fcn.00424f0c
push eax
call sub.gdi32.dll_BitBlt
push edi
push 0
call sub.user32.dll_ReleaseDC
cmp bl, 2
jne 0x4d6cc3
mov ebp, esi
mov eax, esi
call fcn.00451f9c
dec eax
test eax, eax
jl 0x4d6a20
inc eax
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.00451f60
mov edx, dword [0x44a880]
call fcn.004036a4
test al, al
je 0x4d6a19
mov edx, ebx
mov eax, esi
call fcn.00451f60
cmp byte [eax + 0x57], 0
je 0x4d6a19
mov edx, ebx
mov eax, esi
call fcn.00451f60
cmp byte [eax + 0x5b], 5
jne 0x4d6a19
mov edx, ebx
mov eax, esi
call fcn.00451f60
mov ebp, eax
jmp 0x4d6a20
inc ebx
dec dword [esp + 0x1c]
jne 0x4d69d6
xor eax, eax
mov dword [esp], eax
push 0
mov eax, 0x5b9e84
mov ecx, 1
mov edx, dword [0x477ba4]
call fcn.00405a18
add esp, 4
mov eax, ebp
call fcn.00451f9c
dec eax
test eax, eax
jl 0x4d6b38
inc eax
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov edx, ebx
mov eax, ebp
call fcn.00451f60
cmp byte [eax + 0x57], 0
je 0x4d6b2d
inc dword [esp]
mov eax, dword [esp]
push eax
mov eax, 0x5b9e84
mov ecx, 1
mov edx, dword [0x477ba4]
call fcn.00405a18
add esp, 4
mov edx, dword [esp]
dec edx
mov eax, ebp
call fcn.00451f60
lea edx, [esp + 0x68]
call fcn.0044e2f8
mov edi, dword [esp]
add edi, edi
mov eax, dword [0x5b9e84]
push esi
push edi
lea esi, [esp + 0x70]
lea edi, [eax + edi*8 - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 4
push 4
mov eax, dword [0x5b9e84]
lea eax, [eax + edi*8 - 0x10]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [0x5b9e84]
cmp dword [eax + edi*8 - 0x10], 0
jge 0x4d6ae0
mov eax, dword [0x5b9e84]
xor edx, edx
mov dword [eax + edi*8 - 0x10], edx
mov eax, dword [0x5b9e84]
cmp dword [eax + edi*8 - 0xc], 0
jge 0x4d6af7
mov eax, dword [0x5b9e84]
xor edx, edx
mov dword [eax + edi*8 - 0xc], edx
mov edx, dword [0x5b9e84]
mov edx, dword [edx + edi*8 - 8]
mov eax, dword [ebp + 0x48]
cmp edx, eax
jle 0x4d6b12
mov edx, dword [0x5b9e84]
mov dword [edx + edi*8 - 8], eax
mov edx, dword [0x5b9e84]
mov edx, dword [edx + edi*8 - 4]
mov eax, dword [ebp + 0x4c]
cmp edx, eax
jle 0x4d6b2d
mov edx, dword [0x5b9e84]
mov dword [edx + edi*8 - 4], eax
inc ebx
dec dword [esp + 0x1c]
jne 0x4d6a56
cmp dword [0x5ac510], 0
jne 0x4d6b50
mov eax, dword [0x5ac50c]
call fcn.004cfee4
mov dword [0x5ac510], eax
mov eax, dword [0x5ac510]
call fcn.00429a18
call fcn.00424f0c
push eax
call sub.gdi32.dll_SaveDC
mov ebx, eax
mov eax, dword [0x5ac510]
call fcn.00429a18
call fcn.00424a00
mov eax, dword [0x5ac510]
call fcn.00429a18
call fcn.00424f0c
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x4c]
push eax
lea eax, [esp + 0x6c]
push eax
mov ecx, dword [esi + 0x48]
xor edx, edx
xor eax, eax
call fcn.00406974
push esi
lea esi, [esp + 0x6c]
lea edi, [esp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea ecx, [esp + 0x78]
xor edx, edx
xor eax, eax
call fcn.00406990
mov eax, dword [esp + 0x78]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x60], 0
mov eax, esi
call fcn.004552a4
mov edx, eax
lea eax, [esp + 0x30]
mov cl, 1
call fcn.004c6f94
mov eax, dword [0x5ac510]
call fcn.00429a18
call fcn.00424de0
push ebx
mov eax, dword [0x5ac510]
call fcn.00429a18
call fcn.00424f0c
push eax
call sub.gdi32.dll_RestoreDC
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
mov eax, dword [0x5ac510]
call fcn.004c6314
test al, al
je 0x4d6cc3
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
mov eax, dword [0x5ac50c]
call fcn.004c6314
test al, al
je 0x4d6cc3
mov eax, dword [0x5ac510]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
test eax, eax
jl 0x4d6cc3
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp], 0
mov eax, dword [esp + 0x18]
imul dword [esp]
add eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
imul dword [esp]
add eax, dword [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [0x5ac510]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edi, eax
dec edi
test edi, edi
jl 0x4d6cba
inc edi
xor ebx, ebx
mov eax, dword [esp + 8]
lea edx, [eax + ebx*4]
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x4d6cb2
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4d6cb2
mov dl, byte [edx]
cmp dl, byte [eax]
jne 0x4d6cb2
xor edx, edx
mov dword [eax], edx
jmp 0x4d6cb6
mov byte [eax + 3], 0xff
inc ebx
dec edi
jne 0x4d6c88
inc dword [esp]
dec dword [esp + 0x1c]
jne 0x4d6c56
cmp dword [0x5ac4f8], 0
jne 0x4d6ce5
mov ecx, dword [0x5b8c74]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4d40c4]
call fcn.004d92c0
mov dword [0x5ac4f8], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4d6d2c
mov edx, eax
mov eax, dword [0x5ac4f8]
mov ecx, dword [eax]
call dword [ecx + 0x68]
cmp dword [0x5ac4f8], 0
je 0x4d6d87
mov edx, esi
mov eax, dword [0x5ac4f8]
call fcn.004d476c
lea edx, [esp + 0x68]
mov eax, esi
call fcn.0044e2f8
lea edx, [esp + 0x68]
mov eax, dword [0x5ac4f8]
call fcn.0044e318
jmp 0x4d6d3a
lea edx, [esp + 0x20]
mov eax, dword [0x5ac4f8]
call fcn.0044e318
mov eax, dword [0x5ac4f8]
cmp dword [eax + 0x30], 0
jne 0x4d6d75
mov ebx, 0x57
push ebx
push 0
push 0
push 0
push 0
push 3
mov eax, esi
call fcn.004552a4
push eax
call sub.user32.dll_GetWindow
push eax
mov eax, dword [0x5ac4f8]
call fcn.004552a4
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4d6d87
push 8
mov eax, dword [0x5ac4f8]
call fcn.004552a4
push eax
call sub.user32.dll_ShowWindow
add esp, 0x80
pop ebp
pop edi
pop esi
pop ebx
ret