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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], 0
mov eax, dword [edi + 0x38]
lea ebx, [edi + 0x34]
mov esi, dword [ebx]
sub eax, esi
sar eax, 2
imul eax, eax, 0xaaaaaaab
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0
test eax, eax
je 0x51b08d
xor edx, edx
mov dword [esp + 0x14], edx
nop word [eax + eax]
mov eax, dword [ebx]
xor ecx, ecx
mov esi, dword [edx + esi]
mov eax, dword [edx + eax + 4]
sub eax, esi
sar eax, 2
imul edx, eax, 0xc4ec4ec5
test edx, edx
je 0x51b061
lea eax, [esi + 0x30]
cmp byte [eax], 0
je 0x51aea3
inc ecx
add eax, 0x34
cmp ecx, edx
jb 0x51ae91
jmp 0x51b061
mov eax, dword [ebx]
add eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
cmp edx, 2
jne 0x51af7f
cmp dword [esi + 0x14], 0x10
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
jb 0x51aec4
mov esi, dword [esi]
mov ecx, dword [eax + edi + 8]
push esi
call fcn.0054c370
mov dword [esp + 0xc], eax
test eax, eax
je 0x51af7f
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, dword [esp + 0xc]
call esi
test eax, eax
jne 0x51af7f
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 8]
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
add eax, 0x34
cmp dword [eax + 0x14], 0x10
jb 0x51af10
mov eax, dword [eax]
push eax
call fcn.0054c370
mov dword [esp + 0xc], eax
test eax, eax
je 0x51af3a
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, dword [esp + 0xc]
call esi
cmp eax, 6
je 0x51b010
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 8]
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
add eax, 0x34
cmp dword [eax + 0x14], 0x10
jb 0x51af55
mov eax, dword [eax]
push eax
call fcn.0054c370
mov dword [esp + 0xc], eax
test eax, eax
je 0x51af7f
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, dword [esp + 0xc]
call esi
cmp eax, 7
je 0x51b010
mov ebx, dword [ebx]
add ebx, dword [esp + 0x14]
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
cmp eax, 0x68
jne 0x51b05e
cmp dword [edx + 0x14], 0x10
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
jb 0x51afa3
mov edx, dword [edx]
mov ecx, dword [eax + edi + 8]
push edx
call fcn.0054c370
mov dword [esp + 0xc], eax
test eax, eax
je 0x51b05e
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, dword [esp + 0xc]
call esi
test eax, eax
jne 0x51b05e
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 8]
mov eax, dword [ebx]
add eax, 0x34
cmp dword [eax + 0x14], 0x10
jb 0x51afeb
mov eax, dword [eax]
push eax
call fcn.0054c370
mov ebx, eax
test ebx, ebx
je 0x51b05e
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, ebx
call esi
lea ebx, [edi + 0x34]
cmp eax, 4
jne 0x51b061
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebx]
mov ecx, edi
push dword [esi + eax]
call fcn.00475440
mov eax, dword [esp + 0x50]
mov ecx, edi
cmp dword [esp + 0x2c], eax
cmovg eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [ebx]
mov eax, dword [esi + eax]
add eax, 0x34
push eax
call fcn.00475440
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x2c], ecx
cmovg ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
jmp 0x51b061
lea ebx, [edi + 0x34]
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
sub eax, esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
inc ecx
sar eax, 2
add edx, 0xc
imul eax, eax, 0xaaaaaaab
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
cmp ecx, eax
jb 0x51ae70
sub esp, 0xc
mov ecx, esp
push ebx
call fcn.004751a0
mov ecx, edi
call fcn.00475250
mov ecx, dword [esp + 0x2c]
add ecx, 8
add ecx, dword [esp + 0x38]
cmp ecx, eax
jg 0x51b0c2
sub esp, 0xc
mov ecx, esp
push ebx
call fcn.004751a0
mov ecx, edi
call fcn.00475250
mov ecx, eax
lea eax, [ecx + 0x50]
mov edx, 0x14
mov ecx, dword [ebx]
xor esi, esi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
sub eax, ecx
mov dword [esp + 0x28], edx
sar eax, 2
imul eax, eax, 0xaaaaaaab
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], esi
test eax, eax
je 0x51b203
nop dword [eax]
nop dword [eax + eax]
lea esi, [esi + esi*2]
mov dword [esp + 0x20], 0x3c
shl esi, 2
mov dword [esp + 0x10], esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 0
mov edx, dword [esi + ecx]
lea eax, [esi + ecx]
mov dword [esp + 0xc], eax
mov eax, dword [esi + ecx + 4]
sub eax, edx
sar eax, 2
imul eax, eax, 0xc4ec4ec5
test eax, eax
je 0x51b193
xor esi, esi
lea eax, [esp + 0x90]
mov ecx, edi
push eax
lea eax, [esi + edx]
push eax
call fcn.00475440
mov eax, dword [esp + 0xc]
lea esi, [esi + 0x34]
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x94], ecx
cmovg ecx, dword [esp + 0x94]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x24]
sar eax, 2
inc ecx
imul eax, eax, 0xc4ec4ec5
mov dword [esp + 0x24], ecx
cmp ecx, eax
jb 0x51b141
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
xor ecx, ecx
add eax, 9
add dword [esp + 0x28], eax
mov eax, dword [ebx]
lea edx, [esi + eax]
mov dword [esp + 0xc], edx
mov edx, dword [esi + eax]
mov eax, dword [esi + eax + 4]
sub eax, edx
sar eax, 2
imul esi, eax, 0xc4ec4ec5
test esi, esi
je 0x51b1cf
lea eax, [edx + 0x30]
cmp byte [eax], 0
je 0x51b219
inc ecx
add eax, 0x34
cmp ecx, esi
jb 0x51b1c2
mov edx, dword [esp + 0x28]
mov eax, 0xfffffff7
sub eax, dword [esp + 0x34]
add edx, eax
mov dword [esp + 0x28], edx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
mov esi, dword [esp + 0x30]
sar eax, 2
inc esi
imul eax, eax, 0xaaaaaaab
mov dword [esp + 0x30], esi
cmp esi, eax
jb 0x51b100
push 1
push edx
push dword [esp + 0x1c]
lea ecx, [edi - 0x28]
call fcn.00473f90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], ecx
nop word [eax + eax]
cmp dword [edx + ecx + 0x14], 0x10
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov esi, dword [eax + edi + 8]
lea eax, [edx + ecx]
jb 0x51b246
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0054c370
mov ebx, eax
test ebx, ebx
je 0x51b33a
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, ebx
call esi
cmp eax, 8
jne 0x51b33a
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
inc ebx
add ecx, 0x34
mov dword [esp + 0x24], ebx
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
mov dword [esp + 0x18], ecx
sar eax, 2
imul eax, eax, 0xc4ec4ec5
cmp ebx, eax
jb 0x51b230
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x80]
push eax
mov eax, dword [edi + 0x34]
lea ebx, [edi + 0x34]
mov ecx, edi
push dword [esi + eax]
call fcn.00475440
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x14]
add ecx, 0x3c
sub eax, ecx
mov dword [esp + 0x18], ecx
sub eax, 0x14
mov dword [esp + 0xc], eax
mov eax, dword [edi - 0xc]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi - 8]
mov eax, dword [ebx]
mov eax, dword [esi + eax]
cmp dword [eax + 0x14], 0x10
jb 0x51b2ec
mov eax, dword [eax]
push eax
call fcn.0054c370
test eax, eax
je 0x51b72e
mov ecx, dword [esp + 0x8c]
add ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0x88]
push dword [esp + 0x14]
push ecx
push dword [esp + 0x28]
push 1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add eax, 9
add eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jmp 0x51b1e2
mov eax, dword [edi + 0x34]
lea ebx, [edi + 0x34]
mov esi, dword [esp + 0x10]
add eax, esi
mov dword [esp + 0x18], eax
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
cmp eax, 0x68
jne 0x51b427
cmp dword [edx + 0x14], 0x10
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
jb 0x51b368
mov edx, dword [edx]
mov ecx, dword [eax + edi + 8]
push edx
call fcn.0054c370
mov dword [esp + 0xc], eax
test eax, eax
je 0x51b427
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, dword [esp + 0xc]
call esi
test eax, eax
jne 0x51b423
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 8]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, 0x34
cmp dword [eax + 0x14], 0x10
jb 0x51b3b4
mov eax, dword [eax]
push eax
call fcn.0054c370
mov dword [esp + 0xc], eax
test eax, eax
je 0x51b3de
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, dword [esp + 0xc]
call esi
cmp eax, 6
je 0x51b4c7
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 8]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, 0x34
cmp dword [eax + 0x14], 0x10
jb 0x51b3f9
mov eax, dword [eax]
push eax
call fcn.0054c370
mov dword [esp + 0xc], eax
test eax, eax
je 0x51b423
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, dword [esp + 0xc]
call esi
cmp eax, 7
je 0x51b4c7
mov esi, dword [esp + 0x10]
mov eax, dword [ebx]
add eax, esi
mov dword [esp + 0x18], eax
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
cmp eax, 0x68
jne 0x51b5c3
cmp dword [edx + 0x14], 0x10
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
jb 0x51b44d
mov edx, dword [edx]
mov ecx, dword [eax + edi + 8]
push edx
call fcn.0054c370
mov dword [esp + 0xc], eax
test eax, eax
je 0x51b5c3
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, dword [esp + 0xc]
call esi
test eax, eax
jne 0x51b5bf
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 8]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, 0x34
cmp dword [eax + 0x14], 0x10
jb 0x51b499
mov eax, dword [eax]
push eax
call fcn.0054c370
mov dword [esp + 0xc], eax
test eax, eax
je 0x51b5bf
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, dword [esp + 0xc]
call esi
cmp eax, 4
jne 0x51b5bf
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
mov eax, dword [ebx]
mov ecx, edi
push dword [esi + eax]
call fcn.00475440
lea eax, [esp + 0x50]
mov ecx, edi
push eax
mov eax, dword [ebx]
mov eax, dword [esi + eax]
add eax, 0x34
push eax
call fcn.00475440
mov eax, dword [edi - 0xc]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi - 8]
mov eax, dword [ebx]
mov eax, dword [esi + eax]
cmp dword [eax + 0x14], 0x10
jb 0x51b508
mov eax, dword [eax]
push eax
call fcn.0054c370
mov ecx, dword [edi - 0xc]
mov dword [esp + 0xc], eax
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi - 8]
mov ecx, dword [ebx]
mov edx, dword [esi + ecx]
add edx, 0x34
cmp dword [edx + 0x14], 0x10
jb 0x51b52c
mov edx, dword [edx]
push edx
mov ecx, eax
call fcn.0054c370
mov edx, dword [esp + 0xc]
mov esi, eax
test edx, edx
je 0x51b564
mov ecx, dword [esp + 0x4c]
add ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
push 0
push dword [esp + 0x48]
add eax, 0x3c
push dword [esp + 0x34]
push ecx
push eax
push 1
push dword [edx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
add ecx, 0x44
sub edx, ecx
add edx, 0xffffffec
test esi, esi
je 0x51b72e
mov eax, dword [esp + 0x38]
cmp eax, edx
push 0
push dword [esp + 0x58]
cmovle eax, edx
push eax
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x68]
add eax, ecx
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add eax, 9
add eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jmp 0x51b1e2
mov esi, dword [esp + 0x10]
mov eax, dword [ebx]
add eax, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x3c], eax
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xc4ec4ec5
test eax, eax
je 0x51b74d
xor edx, edx
mov eax, ebx
mov dword [esp + 0x24], edx
cmp dword [ecx + edx + 0x14], 0x10
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov esi, dword [eax + edi + 8]
lea eax, [ecx + edx]
jb 0x51b60d
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0054c370
mov ebx, eax
test ebx, ebx
je 0x51b667
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5c3794]
mov ecx, ebx
call esi
cmp eax, 1
jne 0x51b667
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
inc ebx
add edx, 0x34
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [esp + 0x24], edx
sar eax, 2
imul eax, eax, 0xc4ec4ec5
cmp ebx, eax
jae 0x51b746
mov eax, dword [esp + 0xc]
jmp 0x51b5f3
mov ecx, dword [esp + 0xc]
lea ebx, [edi + 0x34]
mov esi, dword [esp + 0x10]
mov ecx, dword [ecx]
mov eax, dword [ecx + esi + 4]
sub eax, dword [ecx + esi]
sar eax, 2
imul eax, eax, 0xc4ec4ec5
mov dword [esp + 0xc], 0
test eax, eax
je 0x51b72e
xor ebx, ebx
lea eax, [esp + 0x70]
push eax
mov eax, dword [ecx + esi]
mov ecx, edi
add eax, ebx
push eax
call fcn.00475440
mov eax, dword [edi - 0xc]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi - 8]
mov eax, dword [edi + 0x34]
mov eax, dword [esi + eax]
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x51b6c2
mov eax, dword [eax]
push eax
call fcn.0054c370
mov esi, dword [esp + 0x70]
mov edx, eax
test edx, edx
je 0x51b6f9
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x7c]
push 0
push dword [esp + 0x78]
push esi
push eax
mov eax, dword [esp + 0x88]
add eax, dword [esp + 0x30]
push eax
push 1
push dword [edx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x34]
add esi, 8
add dword [esp + 0x20], esi
add ebx, 0x34
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
inc edx
mov dword [esp + 0xc], edx
mov eax, dword [esi + ecx + 4]
sub eax, dword [esi + ecx]
sar eax, 2
imul eax, eax, 0xc4ec4ec5
cmp edx, eax
jb 0x51b696
lea ebx, [edi + 0x34]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add eax, 9
add eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jmp 0x51b1e2
mov esi, dword [esp + 0x10]
lea ebx, [edi + 0x34]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xaaaaaaab
dec eax
cmp eax, dword [esp + 0x30]
jne 0x51b674
mov eax, dword [esp + 0x1c]
lea ecx, [edi - 0x2c]
push dword [esp + 0x14]
add eax, 9
push eax
mov dword [esp + 0x24], eax
mov dword [edi + 0x60], eax
call fcn.0051b890
mov eax, dword [ebx]
mov ecx, edi
add dword [esp + 0x1c], 0xd
add eax, esi
add dword [esp + 0x28], 0x16
push eax
call fcn.004753b0
mov ecx, dword [esp + 0x14]
sub ecx, eax
sub ecx, 0x14
cmp ecx, 0x3c
jge 0x51b7ae
mov esi, 0x3c
jmp 0x51b7c3
mov eax, dword [ebx]
mov ecx, edi
add eax, esi
push eax
call fcn.004753b0
mov esi, dword [esp + 0x14]
sub esi, eax
sub esi, 0x14
mov ecx, dword [ebx]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], 0
mov eax, dword [edx + ecx + 4]
sub eax, dword [edx + ecx]
sar eax, 2
imul eax, eax, 0xc4ec4ec5
test eax, eax
je 0x51b72e
xor ebx, ebx
mov dword [esp + 0xc], ebx
nop
lea eax, [esp + 0x60]
push eax
mov eax, dword [ecx + edx]
mov ecx, edi
add eax, ebx
push eax
call fcn.00475440
mov eax, dword [edi - 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov edx, dword [eax + edi - 8]
mov eax, dword [edi + 0x34]
mov eax, dword [ecx + eax]
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x51b820
mov eax, dword [eax]
push eax
mov ecx, edx
call fcn.0054c370
mov ebx, dword [esp + 0x60]
mov edx, eax
test edx, edx
je 0x51b854
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x6c]
push 0
push dword [esp + 0x68]
push ebx
push eax
mov eax, dword [esp + 0x78]
add eax, esi
push eax
push 1
push dword [edx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x34]
add ebx, 8
mov edx, dword [esp + 0x10]
add esi, ebx
mov ebx, dword [esp + 0xc]
inc dword [esp + 0x20]
add ebx, 0x34
mov dword [esp + 0xc], ebx
mov eax, dword [edx + ecx + 4]
sub eax, dword [edx + ecx]
sar eax, 2
imul eax, eax, 0xc4ec4ec5
cmp dword [esp + 0x20], eax
jb 0x51b7f0
jmp 0x51b72b