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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xc]
cmp eax, dword [ecx + 8]
jbe 0x52037d
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xac]
cmp eax, edx
jl 0x51fe01
test eax, eax
je 0x51fdd3
test edx, edx
je 0x51fdd3
cmp edx, 1
je 0x51fd57
mov ebx, dword [esp + 0x98]
test ebx, ebx
je 0x51fc11
mov ebp, dword [esp + 0x90]
lea esi, [ebp + ebx*4 - 4]
mov edi, dword [esp + 0xa4]
mov ecx, eax
mov eax, dword [esp + 0x9c]
lea eax, [eax + edi*4 - 4]
cmp eax, esi
je 0x51fc44
test ebx, ebx
jmp 0x51fc21
mov ecx, eax
mov ebp, dword [esp + 0x90]
mov edi, dword [esp + 0xa4]
je 0x51fc51
lea eax, [ebp + ebx*4 - 4]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xa8]
lea edi, [edi + esi*4 - 4]
cmp edi, eax
jne 0x51fc4a
mov edi, dword [esp + 0xa4]
xor ebx, ebx
xor ebp, ebp
jmp 0x51fc51
mov edi, dword [esp + 0xa4]
mov eax, dword [0x808264]
cmp edx, eax
jl 0x51fc6b
nop
mov esi, edx
xor edx, edx
mov dword [esp + 0x68], edx
mov edx, esi
jmp 0x51fec1
lea eax, [ecx + edx]
cmp ebx, eax
jge 0x51fd01
cmp eax, 1
jne 0x51fcbe
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xac]
mov edi, dword [esp + 0xa4]
mov ebx, 1
mov eax, 1
jmp 0x51fd01
mov dword [esp + 0x5c], eax
lea ebx, [0x63e860]
mov dword [esp], ebx
mov dword [esp + 4], eax
lea ebx, [edx + ecx + 4]
mov dword [esp + 0x38], ebx
mov dword [esp + 8], ebx
call fcn.00447490
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xac]
mov edi, dword [esp + 0xa4]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x78], ebp
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x20], ecx
call fcn.0051ef30
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
jmp 0x51fe83
mov ecx, dword [esp + 0xa8]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x90]
mov dword [esp], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
call fcn.0051edd0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
add esp, 0x8c
ret
mov eax, dword [esp + 0x90]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 0
mov eax, dword [esp + 0x98]
mov dword [esp + 0xbc], eax
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x20], eax
call fcn.0051fb90
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
add esp, 0x8c
ret
dec ecx
test ecx, ecx
jle 0x51fe8f
mov edx, dword [eax + ecx*4 - 4]
test edx, edx
je 0x51fe82
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 0xbc], eax
add esp, 0x8c
ret
sar edx, 1
mov edi, dword [esp + 0x68]
inc edi
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0xa4]
cmp edx, eax
jg 0x51feaf
mov eax, dword [esp + 0x68]
cmp eax, 0x20
sbb edi, edi
mov ecx, eax
shl edx, cl
and edi, edx
lea eax, [edi + edi*2]
mov edx, eax
shl eax, 1
mov ecx, edx
mov edx, dword [esp + 0xa0]
add edx, esi
cmp eax, edx
jg 0x51feec
mov eax, edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x70], ecx
cmp ebx, eax
jge 0x51ff64
cmp eax, 1
jne 0x51ff33
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov ebp, dword [esp + 0xc]
mov edi, dword [esp + 0x40]
mov ebx, 1
mov eax, 1
jmp 0x51ff64
mov dword [esp + 0x3c], eax
lea ecx, [0x63e860]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea ecx, [eax + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 8], ecx
call fcn.00447490
mov ebp, dword [esp + 0xc]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x74], ebp
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x20], esi
call fcn.0051f4b0
mov eax, dword [esp + 0x40]
mov ecx, eax
shl eax, 1
mov edx, dword [esp + 0x4c]
mov ebx, edx
sub edx, eax
mov ebp, dword [esp + 0x34]
mov esi, ebp
sub ebp, eax
mov eax, ecx
shl ecx, 3
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, ecx
mov ecx, dword [esp + 0x74]
add ebp, ecx
test edx, edx
je 0x520001
mov dword [esp], ebp
shl edx, 2
mov dword [esp + 4], edx
call fcn.0045f5e0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0xac]
cmp edx, eax
jg 0x52001b
mov ebp, dword [esp + 0xa0]
cmp ebp, edx
je 0x520335
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00520f90
mov eax, dword [esp + 4]
mov dword [esp + 0x84], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
nop
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x9c]
mov edi, ebp
jmp 0x520052
dec ebp
mov eax, dword [esp + 0x84]
test ebp, ebp
jle 0x52005e
mov eax, dword [esi + ebp*4 - 4]
test eax, eax
je 0x52004a
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xb0]
sub ecx, edi
mov dword [esp + 0x48], ecx
mov ebx, ecx
neg ecx
mov ebp, edi
shl edi, 2
sar ecx, 0x1f
and ecx, edi
mov edi, dword [esp + 0xa8]
add ecx, edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xac]
sub ecx, ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
call fcn.0051fb90
mov eax, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], edi
call fcn.0051fab0
nop
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xa8]
mov edx, eax
jmp 0x52011e
dec eax
test eax, eax
jle 0x52012a
mov ebx, dword [ecx + eax*4 - 4]
test ebx, ebx
je 0x52011d
mov dword [esp + 0x64], eax
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x88]
jmp 0x5202d5
mov dword [esp + 0x80], edx
mov dword [esp + 0x60], ebx
mov dword [esp], edi
mov ebp, dword [esp + 0x54]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x20], esi
call fcn.0051fb90
mov eax, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x18], edi
call fcn.0051fab0
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x20], edx
call fcn.0051fb90
mov eax, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x40]
add edi, esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x18], edi
call fcn.0051fab0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0xa8]
mov ebx, dword [esp + 0xa4]
mov ebp, edx
mov esi, dword [esp + 0x9c]
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x88]
cmp ebp, edx
jle 0x520306
mov dword [esp + 0x6c], edx
sub ebx, edx
mov dword [esp + 0x50], ebx
sub ebp, edx
neg ebx
shl edx, 2
sar ebx, 0x1f
and ebx, edx
lea edx, [esi + ebx]
mov ebx, dword [esp + 0x40]
cmp ebx, ebp
jge 0x5202fe
mov ebp, ebx
jmp 0x520304
mov ebx, ebp
mov ebp, dword [esp + 0x40]
jmp 0x520368
lea eax, [0xe73600]
mov dword [esp], eax
lea eax, [0x670ba0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 8], eax
call fcn.00466510
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x34]
jmp 0x520338
dec ebx
test ebx, ebx
jle 0x520344
mov eax, dword [ecx + ebx*4 - 4]
test eax, eax
je 0x520337
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], esi
add esp, 0x8c
ret
dec ebx
mov esi, dword [esp + 0x9c]
test ebx, ebx
jle 0x52014f
mov esi, dword [edx + ebx*4 - 4]
test esi, esi
je 0x520360
jmp 0x52014f
call fcn.0045dbb0
jmp fcn.0051fb90