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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x38]
push edi
mov dword [esp + 0x20], esi
call fcn.004356ed
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esi + 0x144]
mov dword [esp + 0x1c], eax
xor ebx, ebx
lea eax, [esi + 0xd8]
push 9
mov dword [esp + 0x18], eax
pop ebp
mov eax, dword [esi + 0xd0]
mov edx, dword [esi + 0xcc]
sub eax, edx
mov ecx, dword [esi + 0xa0]
add ecx, ebx
sar eax, 2
cmp ecx, eax
jge 0x498136
mov eax, ecx
shl eax, 2
mov dword [esp + 0x18], eax
push dword [eax + edx]
lea eax, [esp + 0x40]
push eax
call fcn.004ca6cd
mov ecx, eax
call fcn.004cb925
test al, al
je 0x498136
mov eax, dword [esi + 0xcc]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + eax], 0
jle 0x497fe9
push ecx
push ecx
lea ecx, [esp + 0x98]
call fcn.0043adb7
mov eax, dword [esi + 0xcc]
mov edx, 0x54e058
add eax, dword [esp + 0x18]
push dword [eax]
push ecx
lea ecx, [esp + 0xa8]
call fcn.0043e07c
pop ecx
mov ecx, eax
call fcn.0043b5fd
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xac]
call fcn.0043c8d5
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push dword [eax + 8]
call edi
lea ecx, [esp + 0x24]
call fcn.0043c274
lea ecx, [esp + 0x90]
call fcn.00436d2d
jmp 0x497ff9
mov eax, dword [esp + 0x14]
push str._ANY
mov eax, dword [eax]
push dword [eax + 8]
call edi
mov eax, dword [esi + 0xcc]
add eax, dword [esp + 0x18]
push dword [eax]
call fcn.004ca6cd
mov ecx, eax
call fcn.004cb8ee
movzx ecx, al
mov eax, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0xff
mov eax, dword [eax]
mov dword [eax + 0x3c], ecx
mov eax, dword [esi + 0xcc]
add eax, dword [esp + 0x18]
push dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.004ca6cd
mov ecx, eax
call fcn.004cb925
and dword [esp + 0x34], 0
lea ecx, [esp + 0x24]
xor eax, eax
mov dword [esp + 0x38], 7
push 0x54e058
mov word [esp + 0x28], ax
call fcn.0043c2b9
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
push dword [esp + 0x4c]
cmovae eax, dword [esp + 0x40]
lea ecx, [esp + 0x28]
push eax
call fcn.0043d30e
push eax
lea ecx, [esp + 0x7c]
call fcn.0043a41d
cmp dword [esp + 0x8c], 8
lea eax, [esp + 0x78]
cmovae eax, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x24]
push dword [eax + 8]
call edi
lea ecx, [esp + 0x78]
call fcn.0043c274
lea ecx, [esp + 0x24]
call fcn.0043c274
and dword [esp + 0x70], 0
xor eax, eax
mov word [esp + 0x60], ax
mov eax, dword [esi + 0xcc]
add eax, dword [esp + 0x18]
mov dword [esp + 0x74], 7
push dword [eax]
lea eax, [esp + 0x64]
push eax
call fcn.004ca6cd
mov ecx, eax
call fcn.004cba57
cmp dword [esp + 0x70], 0
mov ecx, 0x55a0e8
mov eax, 0x54de54
cmovne eax, ecx
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x48]
push dword [eax + 8]
call edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
call fcn.00497eae
lea ecx, [esp + 0x60]
call fcn.0043c274
add dword [esp + 0x14], 4
inc ebx
add dword [esp + 0x1c], 0x34
cmp ebx, ebp
jl 0x497f1d
mov word [esp + 0x54], 0
mov byte [esp + 0x59], 0
cmp ebx, ebp
jge 0x4981a8
imul eax, ebx, 0x34
lea edi, [esi + 0xfc]
lea edi, [edi + ebx*4]
add eax, 0x144
add eax, esi
sub ebp, ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi - 0x24]
push 0x54de54
push dword [eax + 8]
call ebx
mov eax, dword [edi]
push 0x54de54
push dword [eax + 8]
call ebx
mov eax, dword [edi + 0x24]
push 0x54de54
push dword [eax + 8]
call ebx
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.00497eae
add esi, 0x34
lea edi, [edi + 4]
sub ebp, 1
jne 0x498167
mov esi, dword [esp + 0x20]
push 1
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x3c]
call fcn.0043c274
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret