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

Disassembly:
lea esi, [esi + esi*2]
mov dword [esp + 0x20], 0x3c
and byte [eax + eax], bh
add byte [eax], al
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.0058f990
add byte [ebx - 0x72f3dbbc], cl
jbe 0x51b18f
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x94], ecx
add byte [eax], al
add byte [edi], cl
dec edi
mov word [esp + edx*4], fs
add byte [eax], al
add byte [ebx + 0x4408b10], cl
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]
and al, 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 0x58e59e
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 0x6669ba
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
xchg edx, eax
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.0058faf6
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x14]
add ecx, 0x3c
sar dword [ebx + ebp], 0xc1
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 [edi + 0x34]
lea ebx, [edi + 0x34]
xor al, 0x8b
je 0x51b367
adc byte [ebx], al
invalid
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 0x666ade
mov dword [esp + 0xc], eax
test eax, eax
je 0x51b427
invalid
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 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 0x666bc3
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 0x666c0b
mov dword [esp + 0xc], eax
test eax, eax
je 0x51b5bf
invalid
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
invalid
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.0058fd18
add byte [ebp - 0x74afdbbc], cl
iretd
push eax
mov eax, dword [ebx]
mov eax, dword [esi + eax]
add eax, 0x34
push eax
call fcn.0058fd2d
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 0x666c7a
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 0x666ca0
mov edx, dword [esp + 0xc]
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]
add al, 0x2b
rol ecx, 0xf8
add ch, byte [ecx - 0x40]
lds ecx, [esi - 0x14]
les eax, [ebp + 0x62840fc0]
add dword [eax], eax
invalid
add dword [eax], eax
add byte [ebx], dh
ror byte [ebx + 0x245489c3], cl
and al, 0x83
jl 0x51b607
xor edx, edx
mov eax, ebx
mov dword [esp + 0x24], edx
cmp dword [ecx + edx + 0x14], 0x10
adc al, 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]
add al, 0x11
jb 0x51b60d
mov eax, dword [eax]
push eax
mov ecx, esi
call 0x666d81
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
invalid
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
lds ecx, [esi - 0x14]
invalid
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.0058fee4
dec eax
pop es
add byte [ebx + 0x408bf447], cl
add al, 0x8b
dec esp
cmp al, bh
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 0x666e34
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
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
rol ch, 0x4e
in al, dx
les edi, [ebx]
ror byte [edi], 1
sub byte [ebx - 1], 0xff
invalid
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
stosb byte es:[edi], al
stosb byte es:[edi], al
stosb byte es:[edi], al
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 0x63640f
mov eax, dword [ebx]
mov ecx, edi
add dword [esp + 0x1c], 0xd
add eax, esi
add dword [esp + 0x28], 0x16
push eax
call fcn.0058ff45
mov ecx, dword [esp + 0x14]
adc al, 0x2b
enter 0xffffffffffffe983, 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.0058ff66
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]
add al, 0x11
mov ecx, edi
add eax, ebx
push eax
call fcn.0059003e
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 0x666f94
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 [0x5c34b8]
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