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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebx
push ebp
xor ebp, ebp
add eax, 0xfffff9f6
cmp eax, 0x12
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebp
ja case.0x504e17.1557
jmp dword [eax*4 + 0x50564c]
mov ebx, dword [esp + 0x34]
cmp ebx, ebp
je case.0x504e17.1557
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0xbc]
shr edi, 0x10
cmp edi, eax
jb 0x504e41
mov edi, eax
xor esi, esi
cmp edi, 4
jl 0x504e86
lea edx, [edi - 4]
shr edx, 2
add ecx, 0x11c
inc edx
lea eax, [ebx + 8]
lea esi, [edx*4]
nop
mov ebp, dword [ecx - 0x2c]
mov dword [eax - 8], ebp
mov ebp, dword [ecx]
mov dword [eax - 4], ebp
mov ebp, dword [ecx + 0x2c]
mov dword [eax], ebp
mov ebp, dword [ecx + 0x58]
mov dword [eax + 4], ebp
add eax, 0x10
add ecx, 0xb0
dec edx
jne 0x504e60
mov ecx, dword [esp + 0x28]
cmp esi, edi
jae 0x504ea3
mov eax, esi
imul eax, eax, 0x2c
lea eax, [eax + ecx + 0xf0]
mov ecx, dword [eax]
mov dword [ebx + esi*4], ecx
inc esi
add eax, 0x2c
cmp esi, edi
jb 0x504e96
mov dword [esp + 0x14], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
cmp dword [esp + 0x34], ebp
je case.0x504e17.1557
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov ebx, eax
movzx edx, ax
mov eax, dword [esi + 0xbc]
shr ebx, 0x10
cmp ebx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], 1
jb 0x504ee5
mov ebx, eax
cmp ebx, 4
jl 0x504f9b
mov edx, dword [esp + 0x34]
lea edi, [ebx - 4]
shr edi, 2
add edx, 8
inc edi
lea ecx, [esi + 0xfc]
lea ebp, [edi*4]
lea esp, [esp]
mov eax, dword [edx - 8]
fld dword [ecx]
mov dword [ecx - 0xc], eax
fcomp dword [edx - 8]
fnstsw ax
test ah, 0x41
jne 0x504f26
fld dword [ecx]
jmp 0x504f29
fld dword [edx - 8]
fstp dword [ecx]
mov eax, dword [edx - 4]
fld dword [ecx + 0x2c]
mov dword [ecx + 0x20], eax
fcomp dword [edx - 4]
fnstsw ax
test ah, 0x41
jne 0x504f43
fld dword [ecx + 0x2c]
jmp 0x504f46
fld dword [edx - 4]
fstp dword [ecx + 0x2c]
mov eax, dword [edx]
fld dword [ecx + 0x58]
mov dword [ecx + 0x4c], eax
fcomp dword [edx]
fnstsw ax
test ah, 0x41
jne 0x504f5f
fld dword [ecx + 0x58]
jmp 0x504f61
fld dword [edx]
fstp dword [ecx + 0x58]
mov eax, dword [edx + 4]
fld dword [ecx + 0x84]
mov dword [ecx + 0x78], eax
fcomp dword [edx + 4]
fnstsw ax
test ah, 0x41
jne 0x504f82
fld dword [ecx + 0x84]
jmp 0x504f85
fld dword [edx + 4]
fstp dword [ecx + 0x84]
add edx, 0x10
add ecx, 0xb0
dec edi
jne 0x504f10
cmp ebp, ebx
jae 0x504fd3
mov edx, dword [esp + 0x34]
mov ecx, ebp
imul ecx, ecx, 0x2c
lea ecx, [ecx + esi + 0xfc]
nop
mov eax, dword [edx + ebp*4]
fld dword [ecx]
mov dword [ecx - 0xc], eax
fcomp dword [edx + ebp*4]
fnstsw ax
test ah, 0x41
jne 0x504fc6
fld dword [ecx]
jmp 0x504fc9
fld dword [edx + ebp*4]
fstp dword [ecx]
inc ebp
add ecx, 0x2c
cmp ebp, ebx
jb 0x504fb0
mov dword [esp + 0x14], ebx
xor ebp, ebp
jmp 0x50503b
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
pop edi
pop esi
and eax, 0xffff
pop ebp
mov dword [esp + 8], eax
pop ebx
add esp, 0x14
ret 0x10
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov ecx, dword [esi]
cmp edx, ebp
mov edx, dword [esp + 0x30]
mov eax, ecx
je 0x505012
and edx, 0xffff
or eax, edx
jmp 0x50501c
and edx, 0xffff
not edx
and eax, edx
cmp ecx, eax
je 0x50502a
mov dword [esi], eax
mov dword [esp + 0x10], 3
mov eax, dword [esi]
and eax, 0xffff
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], ebp
je 0x505084
test byte [esp + 0x10], 2
je 0x50506f
mov eax, dword [esi + 0x60]
cmp eax, ebp
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x505055
push eax
call edi
mov dword [esi + 0x60], ebp
mov eax, dword [esi + 0x64]
cmp eax, ebp
je 0x505062
push eax
call edi
mov dword [esi + 0x64], ebp
mov eax, dword [esi + 0x68]
cmp eax, ebp
je 0x50506f
push eax
call edi
mov dword [esi + 0x68], ebp
test byte [esi + 4], 4
jne 0x505084
mov edx, dword [esi + 8]
push ebp
lea ecx, [esi + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esp + 0x1c], ebp
je case.0x504e17.1557
test byte [esi + 4], 4
jne case.0x504e17.1557
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xbc]
pop edi
pop esi
pop ebp
mov dword [esp + 8], ecx
mov eax, ecx
pop ebx
add esp, 0x14
ret 0x10
mov esi, dword [esp + 0x28]
movzx edx, word [esp + 0x30]
mov eax, dword [esi + 0xc0]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
mov dword [esp + 0x1c], edx
jb 0x5050df
mov eax, ecx
cmp eax, dword [esi + 0xbc]
je 0x5050ef
mov dword [esp + 0x10], 3
mov dword [esi + 0xbc], eax
jmp 0x505031
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
push esi
add eax, 0x7c
push eax
push ecx
call fcn.004049b0
pop edi
mov dword [esp + 0x10], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov edi, dword [esi + 4]
movzx edx, ax
shr eax, 0x10
shl eax, 1
xor eax, edi
and eax, 2
mov ecx, edi
xor ecx, eax
mov eax, dword [esp + 0x34]
push 0x10
push eax
lea edi, [esi + 0x7c]
push edi
mov dword [esp + 0x28], edx
mov dword [esi + 4], ecx
mov dword [esp + 0x1c], 1
call dword [0x5d2618]
add esp, 0xc
mov word [edi + 0x1e], bp
jmp 0x50503b
mov edi, dword [esp + 0x28]
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [edi + 4]
mov ecx, dword [esp + 0x34]
shl esi, 0x1f
sar esi, 0x1f
cmp ecx, ebp
mov ebx, eax
mov eax, dword [edi]
je 0x50519a
mov eax, dword [esp + 0x30]
and eax, 0xffff
mov esi, eax
and esi, 1
test ah, 1
je 0x5052fd
push 0x6e
call sym.vidcap60.exe__SfGetUIFont_4
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call ebp
lea edx, [esp + 0x1c]
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x38]
push eax
mov word [esp + 0x3c], 0x30
mov word [esp + 0x3e], 0
call fcn.004049f0
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push ebx
push edi
call fcn.00501730
test esi, esi
mov esi, eax
je 0x505278
lea edx, [esp + 0x14]
push edx
push ebx
push edi
call fcn.005015c0
mov eax, dword [esp + 0x1c]
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x14]
sar edx, 1
mov eax, edx
shr eax, 0x1f
lea eax, [edx + eax + 2]
add esi, eax
cmp eax, ecx
jle 0x50524d
mov ecx, dword [edi + 0xbc]
dec ecx
imul esi, ecx
mov ecx, dword [esp + 0x28]
push ecx
push ebx
add esi, eax
call ebp
mov eax, dword [edi + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov edx, dword [edi + 0xbc]
dec edx
imul esi, edx
add esi, ecx
mov ecx, dword [esp + 0x28]
push ecx
push ebx
call ebp
mov eax, dword [edi + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
lea eax, [esp + 0x14]
push eax
push ebx
push edi
call fcn.005015c0
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax*8]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 2]
mov ecx, dword [esp + 0x18]
add esi, eax
cmp eax, ecx
jle 0x5052d2
mov edx, dword [edi + 0xbc]
mov ecx, dword [esp + 0x28]
dec edx
imul esi, edx
push ecx
push ebx
add esi, eax
call ebp
mov eax, dword [edi + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [edi + 0xbc]
dec eax
imul esi, eax
add esi, ecx
mov ecx, dword [esp + 0x28]
push ecx
push ebx
call ebp
mov eax, dword [edi + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
lea edx, [esp + 0x1c]
push edx
push ebx
push edi
call fcn.005015c0
cmp esi, ebp
mov eax, dword [esp + 0x1c]
jne 0x505315
mov eax, dword [esp + 0x20]
mov esi, dword [edi + 0xbc]
imul esi, eax
mov eax, dword [edi + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
shr eax, 0x10
cmp ecx, ebp
mov dword [esi + 0xc4], ecx
mov dword [esi + 0xc8], eax
je 0x505368
cmp eax, 1
jbe 0x505368
mov edx, dword [ecx]
lea eax, [eax + eax*2]
mov dword [esi + 0x78], edx
mov ecx, dword [ecx + eax*4 - 0xc]
mov dword [esi + 0x74], ecx
mov dword [esp + 0x10], 3
jmp 0x50503b
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
shr eax, 0x10
mov dword [esi + 0xcc], edx
mov dword [esi + 0xd0], eax
mov dword [esp + 0x10], 3
jmp 0x50503b
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x34]
shr edx, 0x10
push eax
mov dword [esi + 0xd4], ecx
mov dword [esi + 0xd8], edx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
push esi
call fcn.00501730
mov ecx, dword [esi + 8]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esp + 0x10], 3
jmp 0x50503b
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x60]
mov ebx, ebp
shr ebx, 0x10
test eax, eax
jne 0x505415
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
push esi
call fcn.00503100
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movzx eax, bp
sub eax, 2
jne case.0x504e17.1557
test byte [esi + 4], 1
je 0x50547b
mov eax, dword [esi + 0xdc]
mov ebp, dword [esi + 0xe0]
xor ecx, ecx
test eax, eax
setl cl
movzx edx, bx
imul edx, dword [esi + 0xe4]
add edx, ebp
dec ecx
and eax, ecx
lea ecx, [edx + eax]
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
mov edx, dword [esi + 0x30]
add edx, ecx
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x44]
mov dword [eax + 4], ecx
mov edi, dword [esi + 0x44]
mov edx, dword [esi + 0x34]
sub edx, edi
pop edi
pop esi
add edx, ecx
pop ebp
mov dword [eax + 0xc], edx
mov eax, dword [esp + 8]
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x34]
mov dword [eax], 0
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x40]
add ecx, edx
mov dword [eax + 8], ecx
mov edi, dword [esi + 0xdc]
xor ecx, ecx
test edi, edi
setl cl
movzx edx, bx
imul edx, dword [esi + 0xe4]
dec ecx
and ecx, edi
add edx, dword [esi + 0xe0]
add ecx, edx
pop edi
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x34]
pop esi
add edx, ecx
pop ebp
mov dword [eax + 0xc], edx
mov eax, dword [esp + 8]
pop ebx
add esp, 0x14
ret 0x10
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 0x19
sar edx, 0x1f
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x34]
shl edx, 6
xor edx, eax
pop edi
pop esi
and edx, 0x40
xor edx, eax
mov eax, dword [esp + 0xc]
pop ebp
mov dword [ecx + 4], edx
pop ebx
add esp, 0x14
ret 0x10
mov esi, dword [esp + 0x28]
fld dword [esi + 0x74]
movzx eax, word [esp + 0x30]
fsub dword [0x5e971c]
mov edx, dword [esp + 0x34]
test edx, 1
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x28]
mov dword [esp + 0x10], 1
je 0x505557
mov eax, dword [esi + 0xbc]
xor ecx, ecx
cmp eax, ebp
jbe 0x505557
lea eax, [esi + 0x100]
lea ecx, [ecx]
mov edi, dword [esp + 0x28]
mov dword [eax - 0x10], edi
mov dword [eax], edi
mov edi, dword [esi + 0xbc]
inc ecx
add eax, 0x2c
cmp ecx, edi
jb 0x505540
test edx, 2
je 0x505584
mov eax, dword [esi + 0xbc]
xor ecx, ecx
cmp eax, ebp
jbe 0x505584
lea eax, [esi + 0xfc]
mov edi, dword [eax - 0xc]
mov dword [eax], edi
mov edi, dword [esi + 0xbc]
inc ecx
add eax, 0x2c
cmp ecx, edi
jb 0x505571
test edx, 4
je 0x5055b4
mov ecx, dword [esi + 0xbc]
xor eax, eax
cmp ecx, ebp
jbe 0x5055b4
lea ecx, [esi + 0xf4]
mov edi, edi
mov edi, dword [esp + 0x28]
mov dword [ecx], edi
mov edi, dword [esi + 0xbc]
inc eax
add ecx, 0x2c
cmp eax, edi
jb 0x5055a0
test edx, 8
je 0x50503b
mov ecx, dword [esi + 0xbc]
xor eax, eax
cmp ecx, ebp
jbe 0x50503b
lea ecx, [esi + 0xf8]
jmp 0x5055e0
mov edx, dword [esp + 0x28]
mov dword [ecx], edx
mov edx, dword [esi + 0xbc]
inc eax
add ecx, 0x2c
cmp eax, edx
jb 0x5055e0
jmp 0x50503b
movzx ecx, word [esp + 0x30]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [esi + 0xe8], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 1
jmp 0x50503b
mov eax, dword [esp + 0x34]
cmp eax, ebp
je case.0x504e17.1557
movzx edx, word [esp + 0x30]
mov eax, dword [eax]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], 1
mov dword [esi + 0xec], eax
jmp 0x50503b