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

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
mov ebx, dword [esi + 0x1b8]
push edi
or eax, 0x80
push eax
mov eax, dword [esi]
push esi
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push 0x5c0f60
push eax
push ecx
call fcn.00547c20
add esp, 0x1c
test eax, eax
je 0x4f466c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret
mov edx, dword [esi + 0x1c]
mov eax, dword [esi]
push edx
push eax
call fcn.00530da0
mov eax, dword [esi + 0x24]
xor ebp, ebp
add esp, 8
cmp eax, ebp
jge 0x4f4687
mov dword [esi + 0x24], ebp
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x18]
add ecx, edx
mov edx, dword [esi + 0x1c]
push edx
mov dword [esi + 0x30], ecx
mov dword [esp + 0x14], 3
mov dword [esp + 0x58], ebp
call fcn.00530bb0
mov edx, dword [esi]
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x10005
push edx
mov dword [esp + 0x28], eax
call fcn.0052b1a0
mov edi, eax
mov eax, dword [esi + 0x34]
add esp, 0x10
cmp eax, ebp
je 0x4f46d8
push eax
mov eax, dword [esi + 4]
push eax
call fcn.0052b4d0
add esp, 8
cmp ebx, dword [esi + 0x1b8]
mov dword [esi + 0x34], edi
je 0x4f4723
mov edi, dword [esi + 0x10]
cmp edi, ebp
je 0x4f4723
or ebx, 0xffffffff
cmp dword [edi + 0x38], ebx
jne 0x4f471c
mov edx, dword [esi + 8]
mov ecx, dword [edi + 0x20]
push 1
push ebp
push ebp
push edi
push esi
push edx
call dword [ecx + 0x10]
add esp, 0x18
test eax, eax
je 0x4f471c
mov eax, dword [esi + 8]
mov ecx, dword [0x5debe0]
push eax
call dword [ecx + 0x36c]
add esp, 4
mov edi, dword [edi + 4]
cmp edi, ebp
jne 0x4f46ed
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x3c]
mov ebx, dword [esi + 0x38]
shl eax, 1
mov edx, eax
add edx, edi
push edx
add eax, ebx
push eax
mov eax, dword [esi]
push eax
call fcn.0052fad0
mov eax, dword [esi + 0x84]
add esp, 0xc
cmp eax, ebp
je 0x4f4756
push 1
push esi
call fcn.004f6f00
add esp, 8
mov eax, dword [esi + 0x13c]
test eax, eax
lea edi, [esi + 0x12c]
lea ebx, [esi + 0x130]
mov dword [edi], ebp
mov dword [ebx], ebp
lea ebp, [esi + 0x134]
mov dword [ebp], 0
mov dword [esi + 0x138], 0
je 0x4f48b3
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [0x5debe0]
lea edx, [esp + 0x84]
push edx
push eax
mov eax, dword [esi + 8]
push eax
call dword [ecx + 0x3d0]
add esp, 0x10
test eax, eax
je 0x4f47bd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret
cmp dword [esp + 0x80], 4
je 0x4f4825
mov edx, dword [esi + 0x13c]
mov eax, dword [esp + 0x70]
mov ecx, dword [0x5debe0]
push 0
push 0x5a8c70
push edx
push str.bad_scrollRegion__
push eax
call dword [ecx + 0x120]
add esp, 0x14
mov edx, dword [esi + 0x13c]
mov eax, dword [0x5debe0]
push edx
call dword [eax + 0x18]
mov ecx, dword [esp + 0x78]
mov edx, dword [0x5debe0]
push ecx
call dword [edx + 0x18]
add esp, 8
pop edi
mov dword [esi + 0x13c], 0
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret
mov edx, dword [esp + 0x74]
mov eax, dword [edx]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push edi
push eax
push ecx
push edx
call fcn.0051a170
add esp, 0x10
test eax, eax
jne 0x4f47ee
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 4]
mov edx, dword [esi]
mov eax, dword [esi + 8]
push ebx
push ecx
push edx
push eax
call fcn.0051a170
add esp, 0x10
test eax, eax
jne 0x4f47ee
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 8]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push ebp
push edx
push eax
push ecx
call fcn.0051a170
add esp, 0x10
test eax, eax
jne 0x4f47ee
mov edx, dword [esp + 0x74]
mov ecx, dword [esi]
lea eax, [esi + 0x138]
push eax
mov eax, dword [edx + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call fcn.0051a170
add esp, 0x10
test eax, eax
jne 0x4f47ee
mov eax, dword [esp + 0x74]
mov ecx, dword [0x5debe0]
push eax
call dword [ecx + 0x18]
add esp, 4
mov ecx, dword [esi + 0x1c4]
test cl, 4
je 0x4f48ca
mov dword [esi + 0x1c8], 0
jmp 0x4f48e7
test cl, 8
je 0x4f48d9
mov eax, dword [esi + 0x38]
cdq
sub eax, edx
sar eax, 1
jmp 0x4f48e1
test cl, 0x10
je 0x4f48e7
mov eax, dword [esi + 0x38]
mov dword [esi + 0x1c8], eax
test cl, 0x20
je 0x4f48f8
mov dword [esi + 0x1cc], 0
jmp 0x4f491b
test cl, 0x40
je 0x4f490d
mov eax, dword [esi + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x1cc], eax
jmp 0x4f491b
test cl, 0x80
je 0x4f491b
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x1cc], ecx
mov edx, dword [esi + 0x9c]
mov eax, dword [esi + 0x98]
push edx
push eax
push esi
call fcn.004f74f0
mov eax, dword [esi + 0x170]
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0x98]
or eax, 0x22
mov dword [esi + 0x170], eax
mov eax, dword [esi]
mov edi, dword [eax + 0x44]
mov eax, dword [eax + 0x40]
add edi, ecx
push edi
add eax, edx
push eax
push ecx
push edx
push esi
call fcn.004f5040
add esp, 0x20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret