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

Disassembly:
sub esp, 0x5c
push ebp
push esi
mov esi, dword [esp + 0x68]
mov eax, dword [esi + 0x39f8]
mov ecx, dword [esi + 0x39e8]
xor ebp, ebp
push edi
xor edi, edi
push str.Repaginate
mov dword [esp + 0x28], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x4c], ecx
call fcn.004e4630
add esp, 4
cmp dword [esi + 0x18], ebp
jne 0x52b94d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x5c
ret
cmp dword [esi + 0x20], ebp
push ebx
mov ebx, dword [esp + 0x74]
je 0x52b972
cmp ebx, ebp
jne 0x52b993
cmp dword [esp + 0x78], ebp
jne 0x52b976
cmp dword [esp + 0x7c], ebp
jne 0x52b976
push esi
call fcn.004d79d0
add esp, 4
jmp 0x52b976
cmp ebx, ebp
jne 0x52b993
test dword [esi + 0xa15c], 0x200
jne 0x52b993
mov edx, dword [esi + 0x404]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x28], eax
cmp dword [esi + 0x3a00], ebp
jl 0x52b9a7
test dword [esi + 0xa17c], 0x20000
je 0x52b9ad
mov dword [esi + 0x3a00], ebp
cmp ebx, ebp
je 0x52b9ee
mov eax, dword [esi + 0x114]
cmp eax, dword [esi + 0x39f4]
je 0x52b9e4
mov ecx, dword [esi + 0x3a00]
cmp ecx, dword [esi + 0x5e4]
jge 0x52b9e4
push esi
call fcn.004ef3b0
add esp, 4
test eax, eax
je 0x52b9f9
mov dword [esi + 0x3a0c], 1
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x5c
ret
push esi
call fcn.00538280
add esp, 4
jmp 0x52ba05
test dword [esi + 0xa178], 0x40000000
je 0x52ba0e
push esi
call fcn.00537a30
add esp, 4
cmp ebx, ebp
jne 0x52ba1a
cmp dword [esi + 0x5b4c], ebp
je 0x52ba23
test byte [esi + 0xa17c], 4
je 0x52ba2c
push esi
call fcn.004bbe80
add esp, 4
mov edx, dword [esi + 0x47c]
mov eax, dword [esi + 0x5d8]
push edx
push eax
push esi
call fcn.004f6e40
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x44], eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x5c]
push eax
push esi
call fcn.005196c0
mov ecx, dword [esi + 0x39e8]
mov edx, dword [esi + 0x114]
add esp, 0x28
cmp ebx, ebp
mov dword [esi + 0x39f0], ecx
mov dword [esp + 0x24], edx
jne 0x52ba9a
cmp dword [esp + 0x78], ebp
jne 0x52ba9a
cmp dword [esp + 0x7c], ebp
jne 0x52ba9a
mov edi, 1
mov dword [esp + 0x10], edi
mov eax, 1
cmp dword [esi + 0x5e4], eax
jne 0x52baad
mov dword [esp + 0x10], eax
jmp 0x52bab1
cmp edi, ebp
je 0x52bab7
xor ebx, ebx
mov dword [esp + 0x74], ebx
xor edi, edi
cmp ebx, ebp
mov dword [esp + 0x70], edi
je 0x52bb7d
mov eax, dword [esi + 0x3a00]
push 0xffffffffffffffff
push eax
push esi
call fcn.0053ab30
mov ebp, dword [esi + 0x3a00]
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebp*4]
mov edi, eax
mov eax, dword [edx + 0x2c]
add esp, 0xc
test edi, edi
mov dword [esp + 0x70], edi
jle 0x52bb1e
test eax, eax
jle 0x52bb1e
mov ecx, dword [esi + 0x588c]
imul eax, eax, 0x84
mov eax, dword [ecx + eax + 4]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esi + 0x5888]
mov edi, dword [eax + edx*4 + 8]
mov dword [esp + 0x70], edi
mov ebx, dword [esi + 0x39e8]
xor eax, eax
test ebx, ebx
jle 0x52bb48
mov edx, dword [esi + 0x5e4]
mov ecx, dword [esi + 0x3a10]
cmp dword [ecx], edx
jge 0x52bb48
add eax, 1
add ecx, 0x48
cmp eax, dword [esi + 0x39e8]
jl 0x52bb36
cmp eax, ebx
jge 0x52bb57
xor edi, edi
mov dword [esp + 0x70], edi
jmp 0x52bbfa
test edi, edi
jle 0x52bbfa
mov edx, dword [esi + 0x3a10]
lea ecx, [edi + edi*8]
cmp ebp, dword [edx + ecx*8]
jne 0x52bbfa
sub edi, 1
mov dword [esp + 0x70], edi
jmp 0x52bbfa
cmp dword [esp + 0x78], ebp
je 0x52bbfa
mov eax, dword [esi + 0x5d8]
push 0xffffffffffffffff
push eax
push esi
call fcn.0053ab30
add esp, 0xc
cmp eax, ebp
mov ecx, eax
jle 0x52bbb7
mov edi, dword [esi + 0x3a10]
lea edx, [eax + eax*8]
lea edx, [edi + edx*8 + 0x28]
test byte [edx], 1
jne 0x52bbb7
sub ecx, 1
sub edx, 0x48
cmp ecx, ebp
jg 0x52bba8
lea edi, [ecx - 1]
cmp edi, ebp
mov dword [esp + 0x70], edi
jge 0x52bbc8
xor edi, edi
mov dword [esp + 0x70], edi
add eax, 1
cmp eax, dword [esi + 0x39e8]
jge 0x52bbf3
mov edx, dword [esi + 0x3a10]
lea ecx, [eax + eax*8]
lea ecx, [edx + ecx*8 + 0x28]
test byte [ecx], 1
jne 0x52bbf3
add eax, 1
add ecx, 0x48
cmp eax, dword [esi + 0x39e8]
jl 0x52bbe0
add eax, 0xffffffff
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x530]
mov ecx, dword [esi + 0x534]
mov ebx, 1
push esi
mov dword [esi + 0x3a04], ebx
mov dword [esi + 0x3a0c], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call fcn.004ab3f0
push 0
push esi
call fcn.004aea30
mov ecx, eax
mov eax, dword [esi + 0x39c0]
mov edx, ecx
imul edx, edx, 0x98
add eax, edx
mov edx, dword [esi + 0x3a10]
add esp, 0xc
test byte [eax + 0x28], 2
mov dword [esp + 0x30], ecx
je 0x52bc60
mov ax, word [eax + 0x34]
mov word [edx + 0x10], ax
jmp 0x52bc64
mov word [edx + 0x10], bx
cmp dword [esp + 0x10], 0
je 0x52bc84
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi + 0x39c4]
shl eax, 4
mov dword [eax + ecx], 0xffffffff
test edi, edi
jne 0x52bd4f
xor ebp, ebp
cmp dword [esi + 0x39c8], ebp
jle 0x52bd4f
xor ebx, ebx
lea esp, [esp]
cmp dword [esp + 0x10], 0
jne 0x52bcb1
cmp ebp, dword [esp + 0x30]
jne 0x52bd37
mov edx, dword [esi + 0x39c0]
fld dword [ebx + edx + 0xc]
lea eax, [ebx + edx]
fsub dword [eax + 0x38]
fimul dword [esi + 0x514]
call fcn.005ac350
mov ecx, dword [esi + 0x39c4]
mov dword [edi + ecx + 0x10], eax
mov edx, dword [esi + 0x39c0]
fld dword [ebx + edx + 0x10]
lea eax, [ebx + edx]
fsub dword [eax + 0x3c]
fimul dword [esi + 0x514]
call fcn.005ac350
mov ecx, dword [esi + 0x39c4]
mov dword [edi + ecx + 0x24], eax
mov edx, dword [esi + 0x39c4]
cmp dword [edi + edx + 0x10], 0
lea eax, [edi + edx + 0x10]
jge 0x52bd12
mov dword [eax], 0
mov eax, dword [esi + 0x39c4]
cmp dword [edi + eax + 0x24], 0
lea eax, [edi + eax + 0x24]
jge 0x52bd29
mov dword [eax], 0
mov ecx, dword [esi + 0x39c4]
mov dword [edi + ecx + 0x28], 0
add ebp, 1
add ebx, 0x98
add edi, 0x70
cmp ebp, dword [esi + 0x39c8]
jl 0x52bca0
cmp dword [esp + 0x10], 0
je 0x52bdcd
cmp dword [esi + 0x734], 1
jle 0x52bf32
mov eax, 1
cmp dword [esi + 0x734], eax
jle 0x52bda3
mov edx, 0x98
mov edi, eax
jmp 0x52bd80
mov ecx, dword [esi + 0x72c]
add ecx, edx
cmp dword [ecx + 0x74], edi
jge 0x52bd93
mov dword [ecx], 0
add eax, edi
add edx, 0x98
cmp eax, dword [esi + 0x734]
jl 0x52bd80
mov ecx, dword [esi + 0x72c]
mov edx, eax
imul edx, edx, 0x98
and dword [edx + ecx + 0x28], 0xfffe7fff
lea ecx, [edx + ecx + 0x28]
add eax, 1
cmp eax, dword [esi + 0x734]
jl 0x52bd63
jmp 0x52bf32
mov edi, dword [esi + 0x734]
mov eax, 1
cmp edi, eax
jle 0x52be01
mov ecx, dword [esi + 0x72c]
add ecx, 0xc0
test dword [ecx], 0x380
je 0x52be01
add eax, 1
add ecx, 0x98
cmp eax, dword [esi + 0x734]
jl 0x52bde8
cmp eax, edi
jge 0x52bf32
mov edx, 1
cmp edi, edx
jle 0x52be45
mov ecx, 0x98
jmp 0x52be20
mov eax, dword [esi + 0x72c]
add eax, ecx
cmp dword [eax + 0x74], 1
jge 0x52be34
mov dword [eax], 0
add edx, 1
add ecx, 0x98
cmp edx, dword [esi + 0x734]
jl 0x52be20
xor edi, edi
cmp dword [esi + 0x5e4], edi
jle 0x52bf32
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x30]
test eax, eax
je 0x52be76
mov ecx, dword [esi + 0x72c]
imul eax, eax, 0x98
mov dword [eax + ecx], 1
mov edx, dword [esi + 0x138]
mov eax, dword [edx + edi*4]
test dword [eax + 0x38], 0x4000
je 0x52bf23
push edi
push esi
call fcn.004ad140
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + edi*4]
xor ebp, ebp
add esp, 8
cmp dword [edx + 0xc], ebp
mov ebx, eax
jle 0x52bf19
movzx eax, word [ebx + ebp*2]
push eax
push esi
call fcn.004cc810
add esp, 8
test eax, eax
je 0x52bf08
movzx ecx, word [ebx + ebp*2]
mov edx, dword [esi + 0x3434]
imul ecx, ecx, 0x170
mov eax, dword [ecx + edx + 0xc4]
mov ecx, dword [esi + 0x72c]
imul eax, eax, 0x98
mov dword [eax + ecx], 1
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + edi*4]
mov edx, dword [esp + 0x70]
cmp dword [ecx + 0x34], edx
jl 0x52bf08
mov ecx, dword [esi + 0x72c]
and dword [eax + ecx + 0x28], 0xfffe7fff
lea eax, [eax + ecx + 0x28]
mov edx, dword [esi + 0x138]
mov eax, dword [edx + edi*4]
add ebp, 1
cmp ebp, dword [eax + 0xc]
jl 0x52bea8
push edi
push esi
call fcn.004ad1d0
add esp, 8
add edi, 1
cmp edi, dword [esi + 0x5e4]
jl 0x52be53
mov ebp, dword [esp + 0x70]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [esi + 0xb70], 0xffffffff
mov dword [esi + 0x3a08], 0
mov ebx, 1
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x52bf65
cmp ebp, eax
jg 0x52c0c8
mov ecx, dword [esp + 0x10]
push ecx
push ebp
push esi
call fcn.00527d90
add esp, 0xc
add ebp, ebx
cmp dword [esp + 0x74], 0
je 0x52c0ab
mov edx, dword [esi + 0x39c]
push ebx
push 0x200
push 0x200
push edx
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x52bfc0
cmp dword [esi + 0xb00], 0
je 0x52bfc0
cmp dword [esi + 0xa100], 0
je 0x52bfc0
mov ecx, dword [esp + 0x5c]
push 0
push ecx
push esi
call fcn.004fc5f0
add esp, 0xc
cmp dword [esi + 0x5e4], 0x1388
jge 0x52bfe2
push esi
call fcn.004ef3b0
add esp, 4
test eax, eax
jne 0x52c0c2
jmp 0x52c0ab
mov edx, dword [esi + 0x39c]
push ebx
push 0x113
push 0x113
push edx
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
jne 0x52bfe2
mov ecx, dword [esi + 0x39c]
push 2
push 0x102
push 0x102
push ecx
lea edx, [esp + 0x60]
push edx
call edi
test eax, eax
jne 0x52c0ba
mov eax, dword [esi + 0x39c]
push 2
push 0x100
push 0x100
push eax
lea ecx, [esp + 0x60]
push ecx
call edi
test eax, eax
jne 0x52c0ba
mov edx, dword [esi + 0x39c]
push 2
push 0x84
push 0x84
push edx
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
jne 0x52c0ba
mov ecx, dword [esi + 0x39c]
push 2
push 0x20
push 0x20
push ecx
lea edx, [esp + 0x60]
push edx
call edi
test eax, eax
jne 0x52c0ba
mov eax, dword [esi + 0x39c]
push 2
push 0xa0
push 0xa0
push eax
lea ecx, [esp + 0x60]
push ecx
call edi
test eax, eax
jne 0x52c0ba
push 2
push 0x209
push 0x200
push eax
lea edx, [esp + 0x60]
push edx
call edi
test eax, eax
jne 0x52c0ba
cmp dword [esi + 0x3a08], 0
je 0x52bf55
jmp 0x52c0c8
mov dword [esp + 0x2c], 0
mov dword [esi + 0x3a0c], ebx
lea eax, [esi + 0x47c]
push eax
mov eax, dword [esp + 0x38]
lea ebx, [esi + 0x5d8]
push ebx
push eax
push esi
call fcn.004f88e0
mov eax, dword [esi + 0x5e4]
add esp, 0x10
cmp dword [esi + 0x5e0], eax
jl 0x52c0fb
add eax, 0xffffffff
mov dword [esi + 0x5e0], eax
mov eax, dword [ebx]
cmp dword [esi + 0x5e0], eax
jle 0x52c10b
mov dword [esi + 0x5e0], eax
mov edx, dword [esi + 0x490]
mov ecx, eax
sub ecx, dword [esi + 0x5e0]
cmp ecx, edx
mov dword [esi + 0x5d4], ecx
jl 0x52c134
lea ecx, [edx - 1]
sub eax, ecx
mov dword [esi + 0x5d4], ecx
mov dword [esi + 0x5e0], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
push esi
call fcn.00519850
push esi
call fcn.00534f80
push esi
call fcn.00515ea0
push esi
call fcn.004aec90
add esp, 0x28
cmp dword [esi + 0x3a08], 0
je 0x52c1ac
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x5e4]
mov dword [esi + 0x114], eax
mov dword [esi + 0x39f4], eax
mov eax, dword [esi + 0xa178]
test eax, 0x40000000
mov dword [esi + 0x3a00], ecx
je 0x52c1d9
and eax, 0xbfffffff
mov dword [esi + 0xa178], eax
jmp 0x52c1d9
cmp ebp, dword [esi + 0x39e8]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x114], edx
jne 0x52c1c6
mov eax, dword [esi + 0x5e4]
jmp 0x52c1d3
mov edx, dword [esi + 0x3a10]
lea ecx, [ebp + ebp*8]
mov eax, dword [edx + ecx*8]
mov dword [esi + 0x3a00], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x52c1e8
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [esp + 0x40]
mov eax, dword [esi + 0x39e8]
cmp edi, eax
mov dword [esi + 0x39f8], edi
jl 0x52c205
add eax, 0xffffffff
mov dword [esi + 0x39f8], eax
mov ecx, dword [esi + 0x39f8]
mov edx, dword [ebx]
push ecx
push edx
push esi
call fcn.0053ab30
mov ecx, dword [esi + 0x39e8]
and dword [esi + 0xa17c], 0xfffdffff
mov dword [esi + 0x39f0], ecx
mov ecx, dword [esp + 0x50]
add esp, 0xc
cmp eax, ecx
mov dword [esi + 0x39f8], eax
mov dword [esi + 0x3a04], 0
jl 0x52c252
mov edx, dword [esp + 0x48]
cmp eax, edx
jg 0x52c252
push edx
push ecx
jmp 0x52c25e
lea ecx, [eax - 1]
cmp edi, ecx
push eax
jne 0x52c25d
push ecx
jmp 0x52c25e
push eax
push 0
push esi
call fcn.005517e0
add esp, 0x10
cmp dword [esp + 0x4c], 1
jne 0x52c28a
push esi
call fcn.00525780
add esp, 4
test eax, eax
je 0x52c28a
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x5c
ret
cmp dword [esp + 0x80], 0
je 0x52c29d
push esi
call fcn.004de3e0
add esp, 4
push str.Repaginate___End
call fcn.004e4630
mov eax, dword [esp + 0x30]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x5c
ret