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

Disassembly:
push 0xffffffffffffffff
push 0x3b5745c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], 0xffffff
mov edx, eax
shr edx, 5
test al, 0x1f
mov dword [esp + 0x24], edx
jle 0x3b51f766
inc edx
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x74]
mov eax, ecx
shr eax, 5
and ecx, 0x1f
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], ecx
jle 0x3b51f781
inc eax
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebp
xor esi, esi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebp
mov ebx, dword [esp + 0x20]
xor eax, eax
xor ecx, ecx
cmp ebx, ebp
mov byte [esp + 0x78], 1
mov dword [esp + 0x38], ecx
jle 0x3b51fa0c
cmp edx, ebp
mov dword [esp + 0x14], ebp
jle 0x3b51f9f3
mov esi, ecx
mov dword [esp + 0x1c], ebp
shl esi, 5
mov dword [esp + 0x3c], esi
jmp 0x3b51f803
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x68]
call fcn.3b51ff90
xor eax, eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x3b51f935
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
shl ecx, 5
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ecx
jmp 0x3b51f84f
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov eax, dword [esp + 0x80]
cmp ecx, eax
jge 0x3b51f91a
mov ecx, dword [esp + 0x88]
push eax
push ecx
call fcn.3b518650
imul eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x94]
add eax, ebx
add eax, ebp
xor edx, edx
xor ecx, ecx
add esp, 8
mov dh, byte [eax]
mov cl, byte [eax + 2]
mov dl, byte [eax + 1]
xor eax, eax
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x64]
test ecx, ecx
mov ebp, edx
mov esi, 1
jle 0x3b51f8ca
mov edi, dword [esp + 0x60]
mov edx, edi
cmp dword [edx], ebp
je 0x3b51f8b5
inc eax
add edx, 8
cmp eax, ecx
jl 0x3b51f8a7
jmp 0x3b51f8ca
mov ecx, dword [edi + eax*8 + 4]
inc ecx
mov dword [edi + eax*8 + 4], ecx
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov esi, dword [edx + eax*8 + 4]
cmp eax, ecx
jne 0x3b51f8ec
mov edi, ecx
inc ecx
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x68]
call fcn.3b51ff90
mov eax, dword [esp + 0x60]
mov dword [eax + edi*8], ebp
mov ecx, dword [esp + 0x60]
mov dword [ecx + edi*8 + 4], esi
cmp esi, dword [esp + 0x44]
jbe 0x3b51f8fa
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
inc eax
add ebx, 3
inc edx
cmp eax, 0x20
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
jl 0x3b51f849
xor ebp, ebp
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
inc eax
inc edx
cmp eax, 0x20
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], edx
jl 0x3b51f821
cmp dword [esp + 0x44], 0x155
ja 0x3b51f959
lea edx, [esp + 0x60]
push edx
call fcn.3b51fa90
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
add esp, 4
inc eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
xor eax, eax
cmp ecx, ebp
mov edi, 1
jle 0x3b51f997
mov ebx, dword [esp + 0x40]
mov edx, esi
cmp dword [edx], ebx
je 0x3b51f980
inc eax
add edx, 8
cmp eax, ecx
jl 0x3b51f972
jmp 0x3b51f99b
mov ecx, dword [esi + eax*8 + 4]
inc ecx
mov dword [esi + eax*8 + 4], ecx
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edi, dword [esi + eax*8 + 4]
jmp 0x3b51f99b
mov ebx, dword [esp + 0x40]
cmp eax, ecx
jne 0x3b51f9c1
mov esi, ecx
inc ecx
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x58]
call fcn.3b51ff90
mov eax, dword [esp + 0x50]
mov dword [eax + esi*8], ebx
mov ecx, dword [esp + 0x50]
mov dword [ecx + esi*8 + 4], edi
mov esi, dword [esp + 0x50]
cmp edi, dword [esp + 0x4c]
jbe 0x3b51f9cf
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add edx, 0x60
inc eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x34]
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x3b51f7ff
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
inc ecx
cmp ecx, eax
mov dword [esp + 0x38], ecx
jl 0x3b51f7e4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
imul eax, ecx
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
ja 0x3b51fa38
lea ecx, [esp + 0x50]
push ecx
call fcn.3b51fa90
mov esi, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x48], eax
cmp edi, ebp
jbe 0x3b51fa44
mov edx, dword [esp + 0x48]
mov dword [esp + 0x24], edx
cmp esi, ebp
mov byte [esp + 0x78], 0
je 0x3b51fa56
push esi
call fcn.3b54606f
add esp, 4
mov eax, dword [esp + 0x60]
pop edi
pop esi
cmp eax, ebp
pop ebp
mov dword [esp + 0x6c], 0xffffffff
pop ebx
je 0x3b51fa73
push eax
call fcn.3b54606f
add esp, 4
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x6c
ret