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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ee228
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
mov esi, ecx
test edi, edi
je 0x4afd8a
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x5c]
push eax
push ecx
mov ecx, edi
call fcn.004641c0
mov eax, dword [edi + 0x2d0]
mov ebp, dword [edi + 0x20c]
shr eax, 3
mov ecx, eax
mov dword [esp + 0x10], ebp
test ecx, ecx
jle 0x4afaa6
mov edx, dword [esi + 0x5c]
lea ebx, [edi + 0x2b8]
push ecx
push 0
mov eax, dword [edx + 0x2d0]
push ebx
shr eax, 3
push eax
push 0x12f
mov ecx, 0x6756e0
mov dword [esp + 0x50], eax
call fcn.0050f120
mov ecx, dword [esi + 0x5c]
push ebx
add ecx, 0x2b8
call fcn.004f4b10
lea ecx, [edi + 0x2c0]
call fcn.00491ab0
mov ecx, 0x6756e0
call fcn.00469ad0
test ebp, ebp
jne 0x4afaa8
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esi + 0x5c]
add ecx, 0x2b8
call fcn.004f48d0
mov edx, dword [esp + 0x3c]
mov ecx, 0x6756e0
push edx
push 5
call fcn.00409c10
jmp 0x4afd8a
test ebp, ebp
jle 0x4afd8a
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x5c]
push eax
add ecx, 0x2b8
call fcn.004f4880
test eax, eax
mov dword [esp + 0x14], eax
je 0x4afd8a
add edi, 0x208
push ebp
push 0
push edi
push 1
push eax
mov ecx, 0x6756e0
call fcn.0050f480
mov ecx, dword [esi + 0x4c]
push ebp
push 0
push edi
push 1
add ecx, 0x14
call fcn.004e7220
mov ecx, dword [esi + 0x8c]
xor ebx, ebx
and ecx, 0xfffffffc
cmp ecx, 4
jne 0x4afb1a
mov edx, dword [esi + 0x84]
mov ecx, esi
mov ebx, dword [edx]
push ebx
call fcn.0051ad70
test eax, eax
jne 0x4afb1a
xor ebx, ebx
xor edi, edi
lea ecx, [esi + 0x7c]
mov dword [esi + 0x78], edi
call fcn.00491ab0
lea ecx, [esp + 0x18]
call fcn.004918b0
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], 1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x4c]
push 0
push eax
add ecx, 0x14
call fcn.004f4110
test eax, eax
je 0x4afbb1
lea edi, [eax + 0x18]
push edi
call fcn.00492830
add edi, eax
push edi
call fcn.00492830
add edi, eax
add esp, 8
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x4afb9f
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0x4c]
add ecx, 0x14
call fcn.004f4160
mov ebp, eax
lea ecx, [esi + 0x7c]
push ebp
call fcn.00491be0
test ebx, ebx
je 0x4afb9b
push ebp
lea ecx, [esp + 0x1c]
mov dword [edi + 0x18], ebx
call fcn.00491be0
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
inc edx
dec ebp
test ebp, ebp
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], ebp
jg 0x4afb3c
test ebx, ebx
je 0x4afd1b
mov eax, dword [esp + 0x28]
shr eax, 2
test eax, eax
mov dword [esp + 0x3c], eax
jle 0x4afd1b
mov ecx, dword [esi + 0x4c]
push 0
push 0
push ebx
add ecx, 0x14
call fcn.004f4200
mov ecx, dword [esi + 0x5c]
mov ebp, eax
push 0
mov edx, dword [ebp]
push edx
call fcn.00462300
lea edi, [ebp + 0x18]
mov dword [esp + 0x10], eax
push edi
call fcn.00492830
add edi, eax
push edi
call fcn.00492830
mov ecx, dword [esp + 0x44]
add edi, eax
add esp, 8
mov eax, dword [edi]
mov edx, dword [edi + 0x1c]
add edi, 0x1c
add edx, ecx
mov dword [edi], edx
mov edx, dword [esp + 0x10]
add edi, 4
mov ecx, dword [edx + 0x14]
test ch, 1
je 0x4afc51
mov eax, dword [eax + 0x1c]
push 0
push 0
push 0x130b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x4afc51
cmp dword [edi], 0
je 0x4afc4b
mov ecx, dword [edi + 4]
add edi, 4
test ecx, ecx
jne 0x4afc41
add edi, 4
dec eax
jne 0x4afc3c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, ecx
sub edi, ebp
neg eax
sbb eax, eax
mov ebp, ecx
and eax, edx
push ecx
mov ecx, dword [esi + 0x4c]
push eax
push edi
push ebx
add ecx, 0x14
call fcn.004e6f30
lea ecx, [esp + 0x10]
push 2
push ecx
mov ecx, 0x676278
mov dword [esp + 0x18], 0x19b
call fcn.00492170
lea eax, [esp + 0x10]
lea edx, [ebp + 0x10]
push 4
push eax
mov ecx, 0x676278
mov dword [esp + 0x18], edx
call fcn.00492170
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push 4
push edx
mov ecx, 0x676278
call fcn.00492170
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, 0x676278
mov dword [esp + 0x1c], ebx
call fcn.00492170
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
push 4
push edx
mov ecx, 0x676278
call fcn.00492170
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, 0x676278
mov dword [esp + 0x1c], edi
call fcn.00492170
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
neg eax
sbb eax, eax
push ebp
and eax, edi
mov ecx, 0x676278
push eax
call fcn.00492170
test dword [esi + 0x8c], 0xfffffffc
jne 0x4afd2e
mov dword [esi + 0x78], 1
push 0
push 0
mov ecx, esi
call fcn.00515e50
mov ecx, dword [0x67602c]
push 0
push esi
add ecx, 0x594
call fcn.00523c70
mov ecx, dword [0x67602c]
call fcn.00490d90
mov edx, dword [esi + 0x1c]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
mov ecx, esi
call fcn.0051a2a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x18], 0x5f7940
call fcn.00491ab0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4